MachineLearningNotebooks icon indicating copy to clipboard operation
MachineLearningNotebooks copied to clipboard

AutoMLPipelineBuilder.get_many_models_train_steps - Method shows the message: "'enabled' is deprecated. Please use the azureml.core.runconfig.DockerConfiguration object with the 'use_docker' param instead."

Open crisansou opened this issue 5 years ago • 3 comments

Hi,

When executing the method, the warning below was displayed. Can you guys explain how to use the 'use_docker' parameter, please?

image

Warning: 'enabled' is deprecated. Please use the azureml.core.runconfig.DockerConfiguration object with the 'use_docker' param instead.

Reference:

https://github.com/microsoft/solution-accelerator-many-models

Best regards, Cristina


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

crisansou avatar May 06 '21 21:05 crisansou

Hi,

Setting the environment as shown in the example below, the message was no longer displayed. However, I don't know if it's the best practice.

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)

Best regards, Cristina

crisansou avatar May 12 '21 16:05 crisansou

Hi @crisansou - you can safely ignore this warning, everything works correctly even if it gets thrown. This parameter is being set internally by our code so there's not really anything to do about it. However it was our understanding that this issue was fixed sometime back. Can you let me know what SDK version you're using?

cartacioS avatar May 14 '21 17:05 cartacioS

Hi @cartacioS ,

Got it, thank you for the info! I'm using 1.27.0 version and the environment at compute instance is Python 3.6 - AzureML.

Best regards, Cristina

Hi @crisansou - you can safely ignore this warning, everything works correctly even if it gets thrown. This parameter is being set internally by our code so there's not really anything to do about it. However it was our understanding that this issue was fixed sometime back. Can you let me know what SDK version you're using?

crisansou avatar May 14 '21 19:05 crisansou