Skip to content

Commit

Permalink
fix: test case
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 292267d commit abc39d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/registry/_mlflow_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
from mlflow.entities.model_registry import ModelVersion
from mlflow.models.model import ModelInfo
from mlflow.store.entities import PagedList
from sklearn.ensemble import RandomForestRegressor
from sklearn.preprocessing import StandardScaler
from torch import tensor

from numalogic.models.threshold import StdDevThreshold


def create_model():
x = torch.linspace(-math.pi, math.pi, 2000)
Expand All @@ -33,8 +34,7 @@ def create_model():


def model_sklearn():
params = {"n_estimators": 5, "random_state": 42}
return RandomForestRegressor(**params)
return StdDevThreshold()


def mock_log_state_dict(*_, **__):
Expand Down

0 comments on commit abc39d6

Please sign in to comment.