sm_data_ml_utils 0.1.1__py3-none-any.whl → 0.1.2__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 +7 -0
- {sm_data_ml_utils-0.1.1.dist-info → sm_data_ml_utils-0.1.2.dist-info}/METADATA +1 -1
- {sm_data_ml_utils-0.1.1.dist-info → sm_data_ml_utils-0.1.2.dist-info}/RECORD +7 -7
- {sm_data_ml_utils-0.1.1.dist-info → sm_data_ml_utils-0.1.2.dist-info}/LICENSE.txt +0 -0
- {sm_data_ml_utils-0.1.1.dist-info → sm_data_ml_utils-0.1.2.dist-info}/WHEEL +0 -0
sm_data_ml_utils/core/config.py
CHANGED
|
@@ -76,6 +76,13 @@ def mlflow_load_artifact(
|
|
|
76
76
|
if type_of_artifact not in ("joblib", "pkl", "dict", "yaml"):
|
|
77
77
|
raise ValueError("Artifact type not supported")
|
|
78
78
|
|
|
79
|
+
if type_of_artifact in ("joblib"):
|
|
80
|
+
return load( # noqa: S301
|
|
81
|
+
mlflow.artifacts.download_artifacts(
|
|
82
|
+
artifact_uri=f"{artifact_uri}/{artifact_name}"
|
|
83
|
+
)
|
|
84
|
+
)
|
|
85
|
+
|
|
79
86
|
if type_of_artifact in ("joblib", "pkl", "dict"):
|
|
80
87
|
return pd.read_pickle( # noqa: S301
|
|
81
88
|
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=xGRWUfcvVlPfS20w-3AsbkXf30m8W2FcRHrXrI2NQok,12077
|
|
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.2.dist-info/LICENSE.txt,sha256=jQGhVAgIuNn_aOSzBgcEjOGhbiYFhdZAmmksZ7Uo85U,1071
|
|
13
|
+
sm_data_ml_utils-0.1.2.dist-info/METADATA,sha256=4J2ToisESNAPBwNy9jTQYN4WyUr609xsBxHDLPxCbC0,3841
|
|
14
|
+
sm_data_ml_utils-0.1.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
15
|
+
sm_data_ml_utils-0.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|