Azure-docs: How to migrate the scoring file (or perhaps 'how to set up the scoring file')

Created on 12 Oct 2018  Â·  5Comments  Â·  Source: MicrosoftDocs/azure-docs

In this migration guide it says that I do not need to change anything in my scoring files when migrating. However, I can not find any information on wether the scoring files will still need to generate a schema.json, or if that part is deprecated. In none of the example files in the documentation that I have seen so far is there any reference to a schema.json file. And, when I try to run my old scoring file, I get an error saying

Traceback (most recent call last):
  File "script_folder/score.py", line 106, in <module>
    main()
  File "script_folder/score_product_embeddings.py", line 84, in main
    from azureml.api.schema.dataTypes import DataTypes
ModuleNotFoundError: No module named 'azureml.api'

The line that causes the error is a part of the schema generation and is identical to the line in the tutorial Classifying Iris from the workbench era find the file here.

If the schema generation is not still a part of the process, then I think it would be wise to add a section about that part here. If, however, it is still a part of the process, then I think it would be wise to add a section to the documentation on how to set up the scoring file (for example in this part of the tutorial.

I remember thinking that the old documentation on how to set up the scoring file was a little scarce. Perhaps it would be wise to extend the documentation slightly for the new tutorial.


Document Details

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

assigned-to-author doc-bug machine-learninsvc triaged

All 5 comments

@ArvidBaa
Thanks for the feedback! We are currently investigating and will update you shortly.

@hning86 Hi Hai, can you please take a look of this suggestion about score file and also update the document as necessary? Thanks a lot!

schema is optional (has always been). so you can skip that part altogether. it will be helpful to go through this example of the new SDK to understand how score.py is now much simpler.

https://github.com/Azure/MachineLearningNotebooks/blob/master/01.getting-started/10.register-model-create-image-deploy-service/10.register-model-create-image-deploy-service.ipynb

Thank you @hning86!

@ArvidBaa We will now proceed to close this thread. If there are further questions regarding this matter, please respond here and @YutongTie-MSFT and we will gladly continue the discussion.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bityob picture bityob  Â·  3Comments

AronT-TLV picture AronT-TLV  Â·  3Comments

behnam89 picture behnam89  Â·  3Comments

monteledwards picture monteledwards  Â·  3Comments

Ponant picture Ponant  Â·  3Comments