'NoneType' error on trained models (unresolvable error)

Jae Seo 1 Reputation point
2021-08-16T18:15:15.607+00:00

Hello, have been struggling with this error for a while now. So the training of the model is fine, working well. However, after training when I try to retrieved the train model from the workspace and make a prediction, sometimes it give me this error. It seems to be related to space remaining on the machine? I am guessing the old models are being over-written and they are gone. But the metrics such as their accuracy or log loss is still showing on the monitoring tab. There are no stackoverflow answers related to this error, can I get any help?

This is the code used to retrieved the saved models.
CURRENT_RUN = Experiment(ws, experiment_name).workspace.get_run(RUNID)
best_run, best_model = CURRENT_RUN.get_output()

Message: object of type 'NoneType' has no len()
InnerException: TypeError: object of type 'NoneType' has no len()
ErrorResponse
{
"error": {
"code": "SystemError",
"message": "Encountered an internal AutoML error. Error Message/Code: PredictionException. Additional Info: PredictionException:\n\tMessage: object of type 'NoneType' has no len()\n\tInnerException: None\n\tErrorResponse \n{\n \"error\": {\n \"message\": \"object of type 'NoneType' has no len()\",\n \"target\": \"CalibratedModel\",\n \"reference_code\": \"CalibratedModel\"\n }\n}",
"details_uri": "https://aka.ms/automltroubleshoot",
"target": "CalibratedModel",
"inner_error": {
"code": "ClientError",
"inner_error": {
"code": "AutoMLInternal"
}
},
"reference_code": "CalibratedModel"
}
}

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,334 questions
Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
771 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.