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

Solved!
zhlj
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....

1 Solution
Liev
Dataiker Alumni

@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.

View solution in original post

4 Replies
tgb417

@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
zhlj
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
Liev
Dataiker Alumni

@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.

zhlj
Level 2
Author

thanks Liev for the answer. 

0 Kudos