Model path for a model folder that has json file and weights.

SHUBHAM JAIN 016 - 70271019016 1 Reputation point

I am trying to create a file for model deployment. In the folder where the model is present, there are two files present. One is the JSON model file another is a .h5 file which has weights of the model. how do I configure the file in this case in the init function of the file?

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,539 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 41,841 Reputation points Microsoft Employee

    @SHUBHAM JAIN 016 - 70271019016 For the above scenario you need to save the model as a single file HDF5 file and then register the model using model.register() to register the model with the workspace and load the model in the scoring script using load_model.