Skip to content

Commit

Permalink
fix: update mlflow version
Browse files Browse the repository at this point in the history
Signed-off-by: s0nicboOm <[email protected]>
  • Loading branch information
s0nicboOm committed Sep 15, 2023
1 parent d1789c0 commit d20b1e3
Show file tree
Hide file tree
Showing 9 changed files with 6,292 additions and 13 deletions.
1,001 changes: 1,001 additions & 0 deletions .btoutput/app1:failure/data.csv

Large diffs are not rendered by default.

Binary file added .btoutput/app1:failure/models.pt
Binary file not shown.
251 changes: 251 additions & 0 deletions .btoutput/app1:failure/output.csv

Large diffs are not rendered by default.

Binary file added .btoutput/app1:failure/plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .btoutput/failure/models.pt
Binary file not shown.
5,001 changes: 5,001 additions & 0 deletions .btoutput/failure/output.csv

Large diffs are not rendered by default.

43 changes: 33 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pynumaflow = "~0.4"


# extras
mlflow-skinny = { version = "~2.6", optional = true }
mlflow-skinny = { version = "^2.0", optional = true }
redis = {extras = ["hiredis"], version = "^5.0", optional = true}
boto3 = { version = "^1.24.64", optional = true }
pydruid = {version = "^0.6", optional = true}
Expand Down
7 changes: 5 additions & 2 deletions tests/registry/test_mlflow_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,15 @@ def test_load_model_when_pytorch_model_exist2(self):
@patch("mlflow.tracking.MlflowClient.transition_model_version_stage", mock_transition_stage)
@patch("mlflow.tracking.MlflowClient.get_latest_versions", mock_get_model_version)
@patch("mlflow.tracking.MlflowClient.search_model_versions", mock_list_of_model_version2)
@patch("mlflow.sklearn.load_model", Mock(return_value=StandardScaler()))
@patch("mlflow.tracking.MlflowClient.get_run", Mock(return_value=return_empty_rundata()))
@patch.object(
MLflowRegistry,
"load",
Mock(return_value=ArtifactData(artifact=StandardScaler(), extras=None, metadata={})),
Mock(
return_value=ArtifactData(
artifact=StandardScaler(), extras={"metric": ["error"]}, metadata={}
)
),
)
def test_load_model_when_sklearn_model_exist(self):
ml = MLflowRegistry(TRACKING_URI)
Expand Down

0 comments on commit d20b1e3

Please sign in to comment.