Skip to content

Creating ML versions fails while using a correct SCIKIT trained model #3621

@subrataashe

Description

@subrataashe

I created a trained scikit trained model and it works fine locally. However, when I create a new version in my model, it throws the below error:
In google console:-
Command:
gcloud ml-engine versions create $VERSION_NAME --model $MODEL_NAME --origin $MODEL_DIR --runtime-version=1.9 --framework $FRAMEWORK
--python-version=3.5

ERROR:
Creating version (this might take a few minutes)......failed.
ERROR: (gcloud.ml-engine.versions.create) Bad model detected with error: "Failed to load model: Invalid model type detected: builtins.int. Please make sure the model file is an exported sklearn model or pipeline. (Error code: 0)"

Metadata

Metadata

Assignees

Labels

triage meI really want to be triaged.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions