Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use scikit-learn to predict diabetes progression with Watson Machine Learning REST API is throwing error #31

Closed
RajaSreekanth opened this issue Sep 20, 2023 · 1 comment

Comments

@RajaSreekanth
Copy link

cloud notebook, https://github.com/IBM/watson-machine-learning-samples/blob/master/cloud/notebooks/rest_api/curl/deployments/scikit/Use%20scikit-learn%20to%20predict%20diabetes%20progression.ipynb throwing error:

metadata = {
    client.repository.ModelMetaNames.NAME: "CARS4U - Satisfaction Prediction Model",
    client.repository.ModelMetaNames.TYPE: 'tensorflow_2.7',
    client.repository.ModelMetaNames.SOFTWARE_SPEC_UID : software_spec_id
}
print(metadata)    
stored_model_details = client.repository.store_model(tar_filename, meta_props=metadata)

is throwing below error:

Failure during creating model. (POST https://us-south.ml.cloud.ibm.com/ml/v4/models?version=2023-09-06&space_id=807063b4-90d7-4dae-882e-804446280c35)
Status code: 400, body: {
  "trace": "2a5cdea2f1102ba3d08363616f5e3d96",
  "errors": [{
    "code": "invalid_request_entity",
    "message": "Invalid request entity: Unsupported software specification 'runtime-22.1-py3.9'.",
    "more_info": "https://cloud.ibm.com/apidocs/machine-learning"
  }],
  "status_code": "400"
}
@Rafal-Chrzanowski-IBM
Copy link
Member

Greetings, sorry for the delayed response, thank you for pointing out this issue.

Runtime version runtime-22.1-py3.9 is no longer supported on the cloud environment.
You can find a list of currently supported runtimes here:
https://www.ibm.com/docs/en/watsonx/w-and-w/2.1.x?topic=images-downloading-runtime-definition

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

No branches or pull requests

2 participants