MachineLearningNotebooks icon indicating copy to clipboard operation
MachineLearningNotebooks copied to clipboard

AutoMLPipelineBuilder.get_many_models_train_steps - Error "Environment name can not start with the prefix AzureML..."

Open crisansou opened this issue 5 years ago • 10 comments

Hello,

When running the experiment, the error message Environment name can not start with the prefix AzureML was displayed. How can I set the name of the environment? I'm following the GitHub tutorial and haven't found anything about it.

image

Code used:

  • Registering Dataset

image

image

  • Training Pipeline

image

image

image

image

image

References:

  • https://github.com/microsoft/solution-accelerator-many-models/tree/master/Automated_ML/02_AutoML_Training_Pipeline
  • https://github.com/MicrosoftDocs/azure-docs/issues/65770

Best regards, Cristina


Detalhes do documento

⚠ Não edite esta seção. É necessário para a vinculação do problema do docs.microsoft.com ➟ GitHub.

crisansou avatar May 11 '21 20:05 crisansou

Hi,

I have some updates:

  • I put the code below to set the environment.

from azureml.core.environment import Environment

env = Environment.get(workspace=ws, name="AzureML-Tutorial") myenv = env.clone("automl_env")

train_steps = AutoMLPipelineBuilder.get_many_models_train_steps(experiment=experiment, automl_settings=automl_settings, train_data=dataset_input, compute_target=compute_target, partition_column_names=partition_column_names, node_count=1, process_count_per_node=2, run_invocation_timeout=3700, train_env=myenv)

  • The environment problem has been resolved, but now the process displays the message ValueError: None is not in list. I don't know what this means.

image

Failure while loading azureml_run_type_providers. Failed to load entrypoint automl = azureml.train.automl.run:AutoMLRun._from_run_dto with exception (pyarrow 3.0.0 (/azureml-envs/azureml_f3e17a31e8bb78187505ee1343fa990d/lib/python3.6/site-packages), Requirement.parse('pyarrow<2.0.0,>=0.17.0'), {'azureml-dataset-runtime'}). Traceback (most recent call last): File "/azureml-envs/azureml_f3e17a31e8bb78187505ee1343fa990d/lib/python3.6/site-packages/azureml/train/automl/runtime/_many_models/train_model.py", line 212, in logs = run(data_file_path, args, automl_settings, current_step_run) File "/azureml-envs/azureml_f3e17a31e8bb78187505ee1343fa990d/lib/python3.6/site-packages/azureml/train/automl/runtime/_many_models/train_model.py", line 100, in run data = pd.read_csv(file_path, parse_dates=[timestamp_column]) File "/azureml-envs/azureml_f3e17a31e8bb78187505ee1343fa990d/lib/python3.6/site-packages/pandas/io/parsers.py", line 676, in parser_f return _read(filepath_or_buffer, kwds) File "/azureml-envs/azureml_f3e17a31e8bb78187505ee1343fa990d/lib/python3.6/site-packages/pandas/io/parsers.py", line 448, in _read parser = TextFileReader(fp_or_buf, **kwds) File "/azureml-envs/azureml_f3e17a31e8bb78187505ee1343fa990d/lib/python3.6/site-packages/pandas/io/parsers.py", line 880, in init self._make_engine(self.engine) File "/azureml-envs/azureml_f3e17a31e8bb78187505ee1343fa990d/lib/python3.6/site-packages/pandas/io/parsers.py", line 1114, in _make_engine self._engine = CParserWrapper(self.f, **self.options) File "/azureml-envs/azureml_f3e17a31e8bb78187505ee1343fa990d/lib/python3.6/site-packages/pandas/io/parsers.py", line 1949, in init self._set_noconvert_columns() File "/azureml-envs/azureml_f3e17a31e8bb78187505ee1343fa990d/lib/python3.6/site-packages/pandas/io/parsers.py", line 2015, in _set_noconvert_columns _set(val) File "/azureml-envs/azureml_f3e17a31e8bb78187505ee1343fa990d/lib/python3.6/site-packages/pandas/io/parsers.py", line 2005, in _set x = names.index(x) ValueError: None is not in list

Best regards, Cristina

crisansou avatar May 12 '21 16:05 crisansou

@crisansou is there any error surfaced in 70_driver_log?

shbijlan avatar May 27 '21 17:05 shbijlan

Hi @shbijlan ,

I deleted the workspace. I tried to reproduce the steps again but I couldn't even create the experiment, below is the error message. Can you tell which is the recommended version to use this solution?

image

I don't know if it's related, but I realized that now compute instance is using version 1.29.

!pip install --upgrade azureml-sdk[automl] !pip install azureml-contrib-automl-pipeline-steps

image

@crisansou is there any error surfaced in 70_driver_log?

crisansou avatar May 27 '21 18:05 crisansou

from azureml.core. import Environment train_env = Environment.get(workspace = ws, name = 'AzureML-AutoML')

Can you please pass train_env like above for the workaround? There is a bug in our code that needs to be fixed. we will fix it in our next release.

Also this solution only supports 'forecasting' and needs a time_column_name passed in automl settings

deeptim123 avatar May 28 '21 21:05 deeptim123

Hi @deeptim123 ,

Thanks for the instructions! After including the environment I was able to run the cell, but the pipeline ended with an error because I am using a regression model.

In the next release, in addition to fixing the bug, will it be possible to use regression?

from azureml.core. import Environment train_env = Environment.get(workspace = ws, name = 'AzureML-AutoML')

Can you please pass train_env like above for the workaround? There is a bug in our code that needs to be fixed. we will fix it in our next release.

Also this solution only supports 'forecasting' and needs a time_column_name passed in automl settings

crisansou avatar May 28 '21 21:05 crisansou

There are currently no plans to support regression. @cartacioS for visibility of this ask

deeptim123 avatar May 28 '21 21:05 deeptim123

@deeptim123 ,

Thanks for the info. I think it's important to add this functionality for regression and classification as well.

There are currently no plans to support regression. @cartacioS for visibility of this ask

crisansou avatar May 28 '21 21:05 crisansou

@crisansou - this is currently not on our roadmap, and purposefully unprioritized as 90% of our customer base, especially customers investing in thousands+ models are leveraging only forecasting scenarios. Priorities change from one semester to the next, and it may be supported at a later date but is not in scope right now. If you are or have a direct customer who is blocked by the lack of many model support for regression and classification please contact me at [email protected] and we can further discuss.

Thanks!

cartacioS avatar May 28 '21 21:05 cartacioS

Hi @cartacioS ,

Got it, thanks for the info! The project is starting now, but if it is really necessary to use the multiple models solution for regression I'll send you an email.

@crisansou - this is currently not on our roadmap, and purposefully unprioritized as 90% of our customer base, especially customers investing in thousands+ models are leveraging only forecasting scenarios. Priorities change from one semester to the next, and it may be supported at a later date but is not in scope right now. If you are or have a direct customer who is blocked by the lack of many model support for regression and classification please contact me at [email protected] and we can further discuss.

Thanks!

crisansou avatar May 28 '21 22:05 crisansou

Closing as this is being tracked offline as a feature request for MANY MODELS, by Sabina.

CESARDELATORRE avatar Jun 02 '21 17:06 CESARDELATORRE