sm_data_ml_utils 0.1.1__py3-none-any.whl → 0.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sm_data_ml_utils/core/config.py +1 -1
- sm_data_ml_utils/core/databricks_utils.py +1 -0
- sm_data_ml_utils/mlflow_databricks/mlflow_model_utils.py +8 -0
- {sm_data_ml_utils-0.1.1.dist-info → sm_data_ml_utils-0.1.3.dist-info}/METADATA +1 -1
- {sm_data_ml_utils-0.1.1.dist-info → sm_data_ml_utils-0.1.3.dist-info}/RECORD +7 -7
- {sm_data_ml_utils-0.1.1.dist-info → sm_data_ml_utils-0.1.3.dist-info}/LICENSE.txt +0 -0
- {sm_data_ml_utils-0.1.1.dist-info → sm_data_ml_utils-0.1.3.dist-info}/WHEEL +0 -0
sm_data_ml_utils/core/config.py
CHANGED
|
@@ -7,6 +7,7 @@ from typing import Union
|
|
|
7
7
|
import mlflow
|
|
8
8
|
import pandas as pd
|
|
9
9
|
import torch
|
|
10
|
+
from joblib import load
|
|
10
11
|
|
|
11
12
|
from sm_data_ml_utils.core.databricks_utils import get_target_stage_for_env
|
|
12
13
|
from sm_data_ml_utils.core.databricks_utils import load_yaml
|
|
@@ -76,6 +77,13 @@ def mlflow_load_artifact(
|
|
|
76
77
|
if type_of_artifact not in ("joblib", "pkl", "dict", "yaml"):
|
|
77
78
|
raise ValueError("Artifact type not supported")
|
|
78
79
|
|
|
80
|
+
if type_of_artifact in ("joblib"):
|
|
81
|
+
return load( # noqa: S301
|
|
82
|
+
mlflow.artifacts.download_artifacts(
|
|
83
|
+
artifact_uri=f"{artifact_uri}/{artifact_name}"
|
|
84
|
+
)
|
|
85
|
+
)
|
|
86
|
+
|
|
79
87
|
if type_of_artifact in ("joblib", "pkl", "dict"):
|
|
80
88
|
return pd.read_pickle( # noqa: S301
|
|
81
89
|
mlflow.artifacts.download_artifacts(
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
sm_data_ml_utils/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
sm_data_ml_utils/core/config.py,sha256=
|
|
3
|
-
sm_data_ml_utils/core/databricks_utils.py,sha256=
|
|
2
|
+
sm_data_ml_utils/core/config.py,sha256=5i05q4R7VnmmdhxM3owYrJGDH3zTza9vYI5KxxW8Ur4,693
|
|
3
|
+
sm_data_ml_utils/core/databricks_utils.py,sha256=YLq88WzSxfUegwJofEfeTwq6lQslLLDzgA7w1F0IKBk,2935
|
|
4
4
|
sm_data_ml_utils/databricks_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sm_data_ml_utils/databricks_client/client.py,sha256=IbGBDzGVtCsW9NSx2_GL9hXT0VHWsC3_fEzhZvkU9fA,1416
|
|
6
6
|
sm_data_ml_utils/databricks_client/databricks-sql.ipynb,sha256=YFH-TqOB_6dkuBl_qu7wlPmCGy5absciFiQV03FZl9k,41487
|
|
7
7
|
sm_data_ml_utils/mlflow_databricks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
-
sm_data_ml_utils/mlflow_databricks/mlflow_model_utils.py,sha256=
|
|
8
|
+
sm_data_ml_utils/mlflow_databricks/mlflow_model_utils.py,sha256=0GyBvqZDdZk32h_DiI4DvbVfjOImiHwUAT9ksG-TpIY,12101
|
|
9
9
|
sm_data_ml_utils/mlflow_databricks/mlflow_prediction_requests.py,sha256=H4Z7LVqNim95ljLtYgIjso6rvBj9wqjYTSy8Xog15x8,2578
|
|
10
10
|
sm_data_ml_utils/mlflow_databricks/mlflow_serve.py,sha256=1oM9hngT444lMHf_B_J1xpGaztIzF3rpJ3r5EDLaTZM,6818
|
|
11
11
|
sm_data_ml_utils/mlflow_databricks/mlflow_tracker.py,sha256=TBCDRfEY_yhuet8SPF2U5vNGkGUEzdvEQgkNB_SbMO4,5601
|
|
12
|
-
sm_data_ml_utils-0.1.
|
|
13
|
-
sm_data_ml_utils-0.1.
|
|
14
|
-
sm_data_ml_utils-0.1.
|
|
15
|
-
sm_data_ml_utils-0.1.
|
|
12
|
+
sm_data_ml_utils-0.1.3.dist-info/LICENSE.txt,sha256=jQGhVAgIuNn_aOSzBgcEjOGhbiYFhdZAmmksZ7Uo85U,1071
|
|
13
|
+
sm_data_ml_utils-0.1.3.dist-info/METADATA,sha256=pDvagT6R1BnoxnWneUA9V3ZodnIAODLuzDa4cfrgy1E,3841
|
|
14
|
+
sm_data_ml_utils-0.1.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
15
|
+
sm_data_ml_utils-0.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|