$ mlflow ui -h 0.0.0.0 -p 5000
# neumannmlflow_server = '52.89....'
# Tracking URImlflow_tracking_URI = 'http://' + mlflow_server + ':5000'print ("MLflow Tracking URI: %s" % (mlflow_tracking_URI))
# set tracking URImlflow.set_tracking_uri(mlflow_tracking_URI)
with mlflow.start_run(experiment_id=3): mlflow.log_param("depth", 5) mlflow.log_metric("roc_auc", 0.8) mlflow.log_artifact(local_path='curve.png')
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-113-f5870bc80ffe> in <module>()
2 mlflow.log_param("depth", 5)
3 mlflow.log_metric("roc_auc", 0.8)
----> 4 mlflow.log_artifact(local_path='curve.png')
~/py3/lib/python3.7/site-packages/mlflow/tracking/fluent.py in log_artifact(local_path, artifact_path)
131 """Log a local file or directory as an artifact of the currently active run."""
132 artifact_uri = _get_or_start_run().info.artifact_uri
--> 133 get_service().log_artifact(artifact_uri, local_path, artifact_path)
134
135
~/py3/lib/python3.7/site-packages/mlflow/tracking/service.py in log_artifact(self, artifact_uri, local_path, artifact_path)
105 :param artifact_path: If provided, will be directory in artifact_uri to write to"""
106 artifact_repo = ArtifactRepository.from_artifact_uri(artifact_uri, self.store)
--> 107 artifact_repo.log_artifact(local_path, artifact_path)
108
109 def log_artifacts(self, artifact_uri, local_dir, artifact_path=None):
~/py3/lib/python3.7/site-packages/mlflow/store/local_artifact_repo.py in log_artifact(self, local_file, artifact_path)
14 if artifact_path else self.artifact_uri
15 if not exists(artifact_dir):
---> 16 mkdir(artifact_dir)
17 shutil.copy(local_file, artifact_dir)
18
~/py3/lib/python3.7/site-packages/mlflow/utils/file_utils.py in mkdir(root, name)
99 return target
100 except OSError as e:
--> 101 raise e
102
103
~/py3/lib/python3.7/site-packages/mlflow/utils/file_utils.py in mkdir(root, name)
96 try:
97 if not exists(target):
---> 98 os.mkdir(target)
99 return target
100 except OSError as e:
FileNotFoundError: [Errno 2] No such file or directory: '/mlruns/3/1053b732c0a14d6cb8c07ee4320fd781/artifacts'
~/mlruns/3$ tree
.
├── 5dcd18160aa74e6e8e405a6257a13177
│ ├── artifacts
│ ├── meta.yaml
│ ├── metrics
│ │ └── roc_auc
│ └── params
│ └── depth
--
You received this message because you are subscribed to the Google Groups "mlflow-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mlflow-users+unsubscribe@googlegroups.com.
To post to this group, send email to mlflow...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mlflow-users/1db93876-9c50-4c3d-94e9-04d67f0165e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to mlflow-users...@googlegroups.com.
$ cd /home/arnab/mlflow_install$ mlflow server --host 0.0.0.0 --port 8090 --default-artifact-root /home/arnab/artifact_location/ --file-store /home/arnab/file_store_location/
mlflow.set_tracking_uri("http://<Server_1_IP>:8090")exp_id = mlflow.create_experiment("Yet Another Sklearn wine experiment")......with mlflow.start_run(experiment_id = exp_id):.........# Log parameter, metrics, and model to MLflowmlflow.log_param("alpha", alpha)mlflow.log_param("l1_ratio", l1_ratio)mlflow.log_metric("rmse", rmse)mlflow.log_metric("r2", r2)mlflow.log_metric("mae", mae)mlflow.sklearn.log_artifacts(lr, "model")
---------------------------------------------------------------------------FileNotFoundError Traceback (most recent call last)
<ipython-input-5-4c49cbe9b70c> in <module>()----> 1 train(0.5, 0.5)<ipython-input-4-ec3e6c2563bd> in train(in_alpha, in_l1_ratio)73 mlflow.log_metric("mae", mae)74---> 75 mlflow.sklearn.log_artifacts(lr, "model")~/anaconda3/envs/python-skl/lib/python3.7/site-packages/mlflow/tracking/fluent.py in log_artifacts(local_dir, artifact_path)135 """Log all the contents of a local directory as artifacts of the run."""136 artifact_uri = _get_or_start_run().info.artifact_uri--> 137 get_service().log_artifacts(artifact_uri, local_dir, artifact_path)138139~/anaconda3/envs/python-skl/lib/python3.7/site-packages/mlflow/tracking/service.py in log_artifacts(self, artifact_uri, local_dir, artifact_path)113 :param artifact_path: If provided, will be directory in artifact_uri to write to"""114 artifact_repo = ArtifactRepository.from_artifact_uri(artifact_uri, self.store)--> 115 artifact_repo.log_artifacts(local_dir, artifact_path)116117 def set_terminated(self, run_id, status=None, end_time=None):~/anaconda3/envs/python-skl/lib/python3.7/site-packages/mlflow/store/local_artifact_repo.py in log_artifacts(self, local_dir, artifact_path)21 if artifact_path else self.artifact_uri22 if not exists(artifact_dir):---> 23 mkdir(artifact_dir)24 dir_util.copy_tree(src=local_dir, dst=artifact_dir)25~/anaconda3/envs/python-skl/lib/python3.7/site-packages/mlflow/utils/file_utils.py in mkdir(root, name)
99 return target100 except OSError as e:--> 101 raise e102103
~/anaconda3/envs/python-skl/lib/python3.7/site-packages/mlflow/utils/file_utils.py in mkdir(root, name)
96 try:97 if not exists(target):---> 98 os.mkdir(target)99 return target100 except OSError as e:
FileNotFoundError: [Errno 2] No such file or directory: '/home/arnab/artifact_location/1/365b8fd4692d47f8bc611ab3c5cfce24/artifacts/model'
$ pwd/home/arnab/artifact_location$ ls$
$ pwd/home/arnab/file_store_location/1/365b8fd4692d47f8bc611ab3c5cfce24$ lsartifacts meta.yaml metrics params
................................File "/home/arnab/.conda/envs/mlflow/lib/python3.7/site-packages/mlflow/server/handlers.py", line 198, in _list_artifactsartifact_entities = _get_artifact_repo(run).list_artifacts(path)File "/home/arnab/.conda/envs/mlflow/lib/python3.7/site-packages/mlflow/server/handlers.py", line 249, in _get_artifact_reporeturn ArtifactRepository.from_artifact_uri(run.info.artifact_uri, store)File "/home/arnab/.conda/envs/mlflow/lib/python3.7/site-packages/mlflow/store/artifact_repo.py", line 82, in from_artifact_urireturn SFTPArtifactRepository(artifact_uri)File "/home/arnab/.conda/envs/mlflow/lib/python3.7/site-packages/mlflow/store/sftp_artifact_repo.py", line 26, in __init__import pysftpFile "/home/arnab/.conda/envs/mlflow/lib/python3.7/site-packages/pysftp/__init__.py", line 12, in <module>import paramikoFile "/home/arnab/.conda/envs/mlflow/lib/python3.7/site-packages/paramiko/__init__.py", line 31, in <module>from paramiko.transport import SecurityOptions, TransportFile "/home/arnab/.conda/envs/mlflow/lib/python3.7/site-packages/paramiko/transport.py", line 70, in <module>from paramiko.sftp_client import SFTPClientFile "/home/arnab/.conda/envs/mlflow/lib/python3.7/site-packages/paramiko/sftp_client.py", line 43, in <module>from paramiko.sftp_file import SFTPFileFile "/home/arnab/.conda/envs/mlflow/lib/python3.7/site-packages/paramiko/sftp_file.py", line 68self._close(async=True)^SyntaxError: invalid syntax
...........................~/anaconda3/envs/python-skl/lib/python3.7/site-packages/mlflow/store/artifact_repo.py in from_artifact_uri(artifact_uri, store)80 elif artifact_uri.startswith("sftp:/"):81 from mlflow.store.sftp_artifact_repo import SFTPArtifactRepository---> 82 return SFTPArtifactRepository(artifact_uri)83 elif artifact_uri.startswith("dbfs:/"):84 from mlflow.store.dbfs_artifact_repo import DbfsArtifactRepository~/anaconda3/envs/python-skl/lib/python3.7/site-packages/mlflow/store/sftp_artifact_repo.py in __init__(self, artifact_uri, client)47 self.config['private_key'] = user_config['identityfile'][0]48---> 49 self.sftp = pysftp.Connection(**self.config)5051 super(SFTPArtifactRepository, self).__init__(artifact_uri)~/anaconda3/envs/python-skl/lib/python3.7/site-packages/pysftp/__init__.py in __init__(self, host, username, private_key, password, port, private_key_pass, ciphers, log, cnopts, default_path)130 # check that we have a hostkey to verify131 if self._cnopts.hostkeys is not None:--> 132 self._tconnect['hostkey'] = self._cnopts.get_hostkey(host)133134 self._sftp_live = False~/anaconda3/envs/python-skl/lib/python3.7/site-packages/pysftp/__init__.py in get_hostkey(self, host)69 kval = self.hostkeys.lookup(host) # None|{keytype: PKey}70 if kval is None:---> 71 raise SSHException("No hostkey for host %s found." % host)72 # return the pkey from the dict73 return list(kval.values())[0]SSHException: No hostkey for host <IP_Address> found.
To unsubscribe from this group and stop receiving emails from it, send an email to mlflow-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mlflow-users/f8e0ca2b-e295-49c4-84a5-d843b905e5fd%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mlflow-users+unsubscribe@googlegroups.com.
To post to this group, send email to mlflow...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mlflow-users/c76fb621-db55-41c5-95ef-afee78993170%40googlegroups.com.