42fcd387d8f40e5e337d839f3592e304aceb9d6b,mlflow/store/local_artifact_repo.py,LocalArtifactRepository,log_artifact,#LocalArtifactRepository#Any#Any#,16
Before Change
if artifact_path and path_not_unique(artifact_path):
raise Exception("Invalid artifact path: "%s". %s" % (artifact_path,
bad_path_message(artifact_path)))
artifact_dir = self.get_path_module().join(self.artifact_uri, artifact_path) \
if artifact_path else self.artifact_uri
if not self.get_path_module().exists(artifact_dir):
mkdir(artifact_dir)
shutil.copy(local_file, artifact_dir)
After Change
def log_artifact(self, local_file, artifact_path=None):
verify_artifact_path(artifact_path)
artifact_dir = self._resolve_path(artifact_path)
if not self.get_path_module().exists(artifact_dir):
mkdir(artifact_dir)
shutil.copy(local_file, artifact_dir)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: mlflow/mlflow
Commit Name: 42fcd387d8f40e5e337d839f3592e304aceb9d6b
Time: 2019-04-19
Author: jaroslaw.konczak@gmail.com
File Name: mlflow/store/local_artifact_repo.py
Class Name: LocalArtifactRepository
Method Name: log_artifact
Project Name: mlflow/mlflow
Commit Name: 42fcd387d8f40e5e337d839f3592e304aceb9d6b
Time: 2019-04-19
Author: jaroslaw.konczak@gmail.com
File Name: mlflow/store/local_artifact_repo.py
Class Name: LocalArtifactRepository
Method Name: log_artifacts
Project Name: mlflow/mlflow
Commit Name: 42fcd387d8f40e5e337d839f3592e304aceb9d6b
Time: 2019-04-19
Author: jaroslaw.konczak@gmail.com
File Name: mlflow/store/local_artifact_repo.py
Class Name: LocalArtifactRepository
Method Name: list_artifacts