API Reference / sklearn /

anomaly.py

scikit-learn anomaly wrappers.

Generated from the ANOMALY table in specs. Registered under sklearn. hub keys, mirroring the native TuiML anomaly family.

Classes

EllipticEnvelope

class sklearn.anomaly.EllipticEnvelope(_SklearnBackedMixin, Classifier)

scikit-learn EllipticEnvelope (hub key sklearn.EllipticEnvelope).

Wraps EllipticEnvelope. Accepts that estimator's constructor parameters as keyword arguments; call get_parameter_schema for the full list with types and defaults derived from the installed scikit-learn.
Constructor
__init__(
    self,
    **params,
)

Methods

__init__ (self, **params)
get_parameter_schema (cls) -> Dict[str, Any]

Return JSON Schema for constructor parameters.

get_capabilities (cls) -> List[str]

Return the capability names this wrapper supports.

IsolationForest

class sklearn.anomaly.IsolationForest(_SklearnBackedMixin, Classifier)

scikit-learn IsolationForest (hub key sklearn.IsolationForest).

Wraps IsolationForest. Accepts that estimator's constructor parameters as keyword arguments; call get_parameter_schema for the full list with types and defaults derived from the installed scikit-learn.

Commonly set: n_estimators, contamination, random_state.

Constructor
__init__(
    self,
    **params,
)

Methods

__init__ (self, **params)
get_parameter_schema (cls) -> Dict[str, Any]

Return JSON Schema for constructor parameters.

get_capabilities (cls) -> List[str]

Return the capability names this wrapper supports.

LocalOutlierFactor

class sklearn.anomaly.LocalOutlierFactor(_SklearnBackedMixin, Classifier)

scikit-learn LocalOutlierFactor (hub key sklearn.LocalOutlierFactor).

Wraps LocalOutlierFactor. Accepts that estimator's constructor parameters as keyword arguments; call get_parameter_schema for the full list with types and defaults derived from the installed scikit-learn.

Commonly set: n_neighbors, contamination.

Constructor
__init__(
    self,
    **params,
)

Methods

__init__ (self, **params)
get_parameter_schema (cls) -> Dict[str, Any]

Return JSON Schema for constructor parameters.

get_capabilities (cls) -> List[str]

Return the capability names this wrapper supports.

OneClassSVM

class sklearn.anomaly.OneClassSVM(_SklearnBackedMixin, Classifier)

scikit-learn OneClassSVM (hub key sklearn.OneClassSVM).

Wraps OneClassSVM. Accepts that estimator's constructor parameters as keyword arguments; call get_parameter_schema for the full list with types and defaults derived from the installed scikit-learn.

Commonly set: kernel, nu, gamma.

Constructor
__init__(
    self,
    **params,
)

Methods

__init__ (self, **params)
get_parameter_schema (cls) -> Dict[str, Any]

Return JSON Schema for constructor parameters.

get_capabilities (cls) -> List[str]

Return the capability names this wrapper supports.

SGDOneClassSVM

class sklearn.anomaly.SGDOneClassSVM(_SklearnBackedMixin, Classifier)

scikit-learn SGDOneClassSVM (hub key sklearn.SGDOneClassSVM).

Wraps SGDOneClassSVM. Accepts that estimator's constructor parameters as keyword arguments; call get_parameter_schema for the full list with types and defaults derived from the installed scikit-learn.
Constructor
__init__(
    self,
    **params,
)

Methods

__init__ (self, **params)
get_parameter_schema (cls) -> Dict[str, Any]

Return JSON Schema for constructor parameters.

get_capabilities (cls) -> List[str]

Return the capability names this wrapper supports.