Get to know ben_p with this User Highlight Learn More

how to find the model ID when using "scenario. trainmodel (model_ID)" function

Level 2
how to find the model ID when using "scenario. trainmodel (model_ID)" function

I put in the model name "train_Prediction__XGBOOST_REGRESSION__on_Train_sample_prepared" , looks like the scenario run successfully. But the documentation says it's not equal to model name....

0 Kudos
4 Replies
Level 6

@zhlj 

The Name of your model looks very long.  I've run into problems were long names have cause problems.  I invite you to consider if you can reduce the length of this name, and then try again.  I have found that this has fixed problems for me in the past.

--Tom

--Tom
0 Kudos
Level 2
Author

Thanks Tom. although my model name is long, it worked. I am just wondering why? it should be model_id instead of model name. Maybe it can accept either? 

0 Kudos
Dataiker
Dataiker

@zhlj if you open the model from the flow and look at the URL, it will look something like this:

INSTANCE_URL/projects/projectKey/savedmodels/modelID/versions/

You can copy the modelID from here.

Level 2
Author

thanks Liev for the answer. 

0 Kudos