File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -27,17 +27,14 @@ def get_valid_mlflow_experiment_name(config: Any) -> str:
27
27
28
28
29
29
def get_mlflow_relative_path_for_save_folder (save_folder : str ) -> str :
30
- """Returns the relative path for the given save folder
31
-
32
- Relative in mlflow need to be of the format: `artifacts/{relative_path}`
33
- """
34
- return os .path .join ('artifacts' , save_folder .lstrip ('/' ))
30
+ """Returns the relative path for the given save folder"""
31
+ return save_folder .lstrip ('/' )
35
32
36
33
37
34
def get_mlflow_absolute_path_for_save_folder (save_folder : str ) -> str :
38
35
"""Returns the mlflow artifact path for the given save folder"""
39
36
mlflow_prefix = 'dbfs:/databricks/mlflow-tracking/{mlflow_experiment_id}/{mlflow_run_id}'
40
- mlflow_artifact_path = os .path .join (mlflow_prefix , get_mlflow_relative_path_for_save_folder (save_folder ))
37
+ mlflow_artifact_path = os .path .join (mlflow_prefix , 'artifacts' , get_mlflow_relative_path_for_save_folder (save_folder ))
41
38
return mlflow_artifact_path
42
39
43
40
You can’t perform that action at this time.
0 commit comments