cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Machine Learning
Dive into the world of machine learning on the Databricks platform. Explore discussions on algorithms, model training, deployment, and more. Connect with ML enthusiasts and experts.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to read artifact file (CSV) programmatically?

Giorgi
Contributor

Hello, 

can I programmatically access artifact file (csv), via artifact_uri and read it?

Tried the following, but didn't work, says no such file or directory:

mlflow.pyfunc.pandas.read_csv(artifact_uri+'/xgb-classifier-test-8/dataset_statistics.csv')

pandas.read_csv(artifact_uri+'/xgb-classifier-test-8/dataset_statistics.csv')

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions

Giorgi
Contributor

Maybe there are better solutions, here is what I've found:

from mlflow.tracking import MlflowClient
 
client = MlflowClient()
pd.read_csv(client.download_artifacts(run_id, "xgb-classifier-test-8/dataset_statistics.csv"))

View solution in original post

1 REPLY 1

Giorgi
Contributor

Maybe there are better solutions, here is what I've found:

from mlflow.tracking import MlflowClient
 
client = MlflowClient()
pd.read_csv(client.download_artifacts(run_id, "xgb-classifier-test-8/dataset_statistics.csv"))

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group