Display predictions after callking a model on new data.
saraa1
Registered Posts: 13 ✭✭✭
Hello Dataikuers,
I'm trying to call a model that was deployed on my flow,
to do so, I created a notebook where I generated new data and made a call to the model a follows :
#df: is a dataframe that i created, which I would like to test the model in, m = dataiku.Model("My_model_ID") # Provide model name my_predictor = m.get_predictor() xi = my_predictor.preprocess(df)[0] pd.DataFrame(xi).describe()
But, I do not know, with the little knowledge I have on dataiku.model calling, how to run this model on the new data (df) that I created and see the result of the prediction,
May someone provide with some help, please?
Thank you very much !
Tagged:
Answers
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,226 Dataiker
Hi @saraa1
,You can use a scoring recipe for this https://knowledge.dataiku.com/latest/courses/scoring/scored-results/scored-results-summary.html
Is there a particular reason you are looking at doing this from a Notebook instead?
Thanks,