Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Message/Code: Expected argument current_run to have a valid value. #14463

Closed
mastreips opened this issue Oct 13, 2020 · 5 comments
Closed
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. Machine Learning ML-AutoML AreaPath question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@mastreips
Copy link

I am trying to modify the following notebook tutorial in the AML environment - /classification-text-dnn/auto-ml-classification-text-dnn.ipynb so that it outputs and saves the model in ONNX format. I was able to save to pickle format, but when I try to save the output to ONNX using:

automl_run.get_output(return_onnx_model=True)

I get the following error:

ValidationException:
Message: Encountered an internal AutoML error. Error Message/Code: Expected argument current_run to have a valid value.

I know that only certain models work with Onnx conversion through AutoML (reference: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-configure-auto-train#configure-your-experiment-settings) I attempted to prevent any compatibility issues via my AutoML settings below:

here is my AutoML config:

`automl_settings = {
"experiment_timeout_minutes": 20,
"experiment_exit_score": 0.70,
"primary_metric": 'accuracy',
"max_concurrent_iterations": num_nodes,
"max_cores_per_iteration": -1,
"enable_dnn": False,
"enable_early_stopping": True,
"validation_size": 0.3,
"verbosity": logging.INFO,
"enable_voting_ensemble": False,
"enable_stack_ensemble": False,
}

automl_config = AutoMLConfig(task = 'classification',
debug_log = 'automl_errors.log',
compute_target=compute_target,
training_data=train_dataset,
label_column_name=target_column_name,
blocked_models = ['LightGBM', 'Averaged Perceptron Classifier'],
enable_onnx_compatible_models=True,
**automl_settings
)`

@ghost ghost added needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Oct 13, 2020
@kaerm kaerm added Client This issue points to a problem in the data-plane of the library. Machine Learning Service Attention Workflow: This issue is responsible by Azure service team. labels Oct 13, 2020
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Oct 13, 2020
@ghost
Copy link

ghost commented Oct 13, 2020

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureml-github.

@v-strudm-msft v-strudm-msft added the ML-AutoML AreaPath label Oct 14, 2020
@swatig007 swatig007 assigned bandsina and unassigned bandsina Oct 22, 2020
@rtanase
Copy link

rtanase commented Oct 22, 2020

@mastreips, I believe no ONNX models were generated for the experiment. To be 100% sure, do you mind sharing the run id for which you tried to download the ONNX model?

@YunsongB
Copy link

@mastreips, we have identified this issue a couple of days before and released the fix in the azureml-automl-runtime version 1.16.0. Could you please upgrade the automl package(s) and retry?

@cartacioS
Copy link

Hi @mastreips can you please let us know if the fix above worked or if you are still facing the issue?

@cartacioS
Copy link

#please-close

@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. Machine Learning ML-AutoML AreaPath question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

7 participants