Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Model Registration Issue #148

Closed
nikhil8786 opened this issue Sep 21, 2018 · 1 comment
Closed

Model Registration Issue #148

nikhil8786 opened this issue Sep 21, 2018 · 1 comment

Comments

@nikhil8786
Copy link

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
Copy link
Author

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

Thanks,
Nikhil

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant