Skip to content

Commit

Permalink
fix: support sklearn BaseEstimators
Browse files Browse the repository at this point in the history
Signed-off-by: Kushal Batra <[email protected]>
  • Loading branch information
s0nicboOm committed Sep 4, 2024
1 parent eb9ceb1 commit cd88862
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions numalogic/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

import numpy.typing as npt
import pytorch_lightning as pl
from sklearn.base import TransformerMixin, OutlierMixin
from sklearn.base import TransformerMixin, OutlierMixin, BaseEstimator


class BaseTransformer(TransformerMixin):
class BaseTransformer(BaseEstimator, TransformerMixin):
"""Base class for all transformer classes."""

pass
Expand Down Expand Up @@ -47,7 +47,7 @@ class TorchModel(pl.LightningModule, metaclass=ABCMeta):
pass


class BaseThresholdModel(OutlierMixin):
class BaseThresholdModel(BaseEstimator, OutlierMixin):
"""Base class for all threshold models."""

pass
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "numalogic"
version = "0.12.4"
version = "0.13.0"
description = "Collection of operational Machine Learning models and tools."
authors = ["Numalogic Developers"]
packages = [{ include = "numalogic" }]
Expand Down

0 comments on commit cd88862

Please sign in to comment.