Azure / AI-PredictiveMaintenance

Creative Commons Attribution 4.0 International
137 stars 74 forks source link

Model Registration Issue #148

Closed nikhil8786 closed 6 years ago

nikhil8786 commented 6 years ago

Hi, Can you help me out in this ? In operationalisation.py notebook This code: model = Model.register(model_path = "model.pkl", model_name = "model.pkl", tags = ["pdm"], description = "Predictive Maintenance multi-class classifier", workspace = ws)

Giving this exception: Exception: Received bad response from Model Management Service: Response Code: 400 Headers: {'Date': 'Fri, 21 Sep 2018 10:32:51 GMT', 'Connection': 'keep-alive', 'api-supported-versions': '2018-03-01-preview', 'Content-Type': 'application/json', 'x-ms-client-session-id': '', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains; preload', 'x-ms-client-request-id': '79ccef073517408a915e1f260c9b3667', 'Transfer-Encoding': 'chunked'} Content: b'{"code":"BadRequest","statusCode":400,"message":"The request is invalid","details":[{"code":"EmptyOrInvalidPayload","message":"The request payload was either empty or invalid. Try again with a well-formed payload."}]}'

Thanks, Nikhil

nikhil8786 commented 6 years ago

Hi, Issue resolved tags should be in dictionary format tags = {'type': "pdm"}

Thanks, Nikhil