from eereid.novelty.pyod_wrapper import pyod_wrapper
try:
    from pyod.models.sod import SOD
except ImportError:
    from eereid.importhelper import importhelper
    SOD=importhelper("pyod","sod novelty")


class sod(pyod_wrapper):

    def __init__(self,*args, **kwargs):
        self.args = args
        self.kwargs = kwargs
        super().__init__("sod")

    def init_model(self):
        self.model = SOD(*self.args, **self.kwargs)

    def explain(self):
        return f"Enabling Novelty Detection with a SOD model ({self.args}, {self.kwargs})"





