Open nhwkuhns opened 3 years ago
Hello @nhwkuhns We are looking into this.
I was able to pinpoint the issue. Turns out the score.py script was sending the dataframe for inferencing as a np.array.
Also, I was able to build and deploy the model using the Environment class. The code in the 02-....ipynb should be updated to include that rather than the ContainerImage class as the latter is deprecated and it does not cache the image for rebuilding on minor code changes (saving roughly 15 minutes per rebuild for code changes).
Hello @nhwkuhns Is this the right Github : https://github.com/Azure-Samples/IoTEdgeAndMlSample/tree/master/AzureNotebooks ?
For the Notebook code sample files?
[Enter feedback here] I appears the code within the notebook 02-turbofan_deploy_model.ipynb has some issues both with creating the container image and getting predictions once the model is deployed.
First, I could not get the image creation to work with the myenv.yml. I had to use the docker_file parameter with the below entries to get everything to deploy correctly.
Second, once the model gets deployed to ACI, I get the following error:
{ "error": { "code": "UserError", "message": "Expected column(s) 0 not found in fitted data.", "target": "X", "inner_error": { "code": "BadArgument", "inner_error": { "code": "MissingColumnsInData" } }, "reference_code": "17049f70-3bbe-4060-a63f-f06590e784e5" } }
I believed the error to be caused by the training and test dataframes having an unnamed column left over from not having "index=False" in the "to_csv()" method. Upon modifying the code in 01-turbofan_regression.ipynb and retraining the model, I still get the issue.
The Image and ContainerImage classes are deprecated, which may be creating some of these issues. I am working with a customer to fix these issues, but have not had luck in the past couple days.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.