MachineLearningNotebooks icon indicating copy to clipboard operation
MachineLearningNotebooks copied to clipboard

Examples of mounting a datastore for AutoML

Open tarockey opened this issue 7 years ago • 5 comments

Are there any examples of using a mounted datastore (rather than download) for training in AutoML? It appears that the path created for a mounted datastore is different than a downloaded one.

This would be set up by modifying the auto-ml-remote-execution-with-datastore.ipynb notebook with the following:

from azureml.core.runconfig import DataReferenceConfiguration
dr = DataReferenceConfiguration(datastore_name=ds.name, 
                   path_on_datastore='data', 
                   path_on_compute='/tmp/azureml_runs',
                   mode='mount', # Mount the datastore on the compute target
                   overwrite=False)

tarockey avatar May 09 '19 18:05 tarockey

Thank you for your feedback. We currently do not have an example using a mounted datastore. However, we will take this feedback.

Aniththa avatar Jun 13 '19 22:06 Aniththa

Closed Per Ani

kenkadota avatar Jun 14 '19 15:06 kenkadota

I have same issue. This shouldn't have been closed because there is still no solution. Does the method 'mount' use different path than 'download'?

kubasiak avatar Jul 08 '19 10:07 kubasiak

@kubasiak You can read an environment variable in the get_data function to find the data file using a line like: DATA_FOLDER = os.environ['AZUREML_DATAREFERENCE_'] where is the data store name

Aniththa avatar Jul 08 '19 20:07 Aniththa

hi @Aniththa How do I pass the 'AZUREML_DATAREFERENCE_' to get_data()?

kubasiak avatar Jul 09 '19 14:07 kubasiak