tadkit.utils package

Subpackages

Submodules

tadkit.utils.clean_query module

tadkit.utils.not_imported_wrapper module

tadkit.utils.tadlearner_factory module

tadkit.utils.tadlearner_factory.tadlearner_factory(Model: Type[Estimator], required_properties: Sequence[str], params_description: Dict[str, Dict[str, Number | str | datetime | Sequence[Number] | Sequence[str] | Sequence[datetime]]], name: str | None = None) Type[TADLearner][source]

Wrap a sklearn anomaly detection model to a TADLearner.

Parameters:
  • Model – sklearn type model- to wrapp, possessing get_params, fit and score_samples methods.

  • required_properties – The properties that the input data must satisfies.

  • params_description – Description of the kwargs of the __init__ method that is exposed.

  • name – The Name of the class. Default name if None.

Returns:

A subclass of TADLearner wrapping Model with given required_properties, params_description

and __name__.

Module contents