BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
William29
Calcite | Level 5

I have built a machine learning in SAS viya using 'build model' as below:

 

William29_0-1693880994086.png

There does not seem to be an option for me to upload a new dataset on which I want to generate predictions using the already trained model. How do I do this?

 

I am thinking that to do this, I might have to extract the code from the node logs, and re-train the model using the code rather than using 'build model'. Please tell me if this can be done without doing this.

 

Even if I do this, and I use Proc forest, is this model saved anywhere and is there any code that can be used to generate predictions on a new data set?

 

Otherwise, I am thinking that I might have to concatenate this new dataset with the old dataset and hope that I can set the train-test split so that the test part captures only and all the observations in the new dataset (i am not even sure that is possible)

 

1 ACCEPTED SOLUTION

Accepted Solutions
WendyCzika
SAS Employee

There are several ways you can do this, depending on what exactly your needs are.

  • You can use the Score Data node
  • If you know the target in the data you want to score and also want to assess it, you can select Score Holdout Data from the Pipeline Comparison tab.  
  • You can download score code from the Pipeline Comparison tab
  • You can register your model to Model Manager, which can be used to deploy and monitor models.

The last 3 bullets are covered here in the documentation: https://go.documentation.sas.com/doc/en/capcdc/v_020/vdmmlcdc/vdmmlug/p1ngioiguc5mmtn1e1wh8l5cew1r.h...

 

View solution in original post

3 REPLIES 3
WendyCzika
SAS Employee

There are several ways you can do this, depending on what exactly your needs are.

  • You can use the Score Data node
  • If you know the target in the data you want to score and also want to assess it, you can select Score Holdout Data from the Pipeline Comparison tab.  
  • You can download score code from the Pipeline Comparison tab
  • You can register your model to Model Manager, which can be used to deploy and monitor models.

The last 3 bullets are covered here in the documentation: https://go.documentation.sas.com/doc/en/capcdc/v_020/vdmmlcdc/vdmmlug/p1ngioiguc5mmtn1e1wh8l5cew1r.h...

 

William29
Calcite | Level 5

Thanks for the answer. However, i do not want to score holdout data. Rather, I want to generate predictions on a new set of data for which there is no recorded target value; ie i want to deploy the model to make use of it. Which of the four steps you mentioned can be used to do this (i assume the last one can, but what about the others)?

WendyCzika
SAS Employee

Yes, the 1st, 3rd, and 4th bullets are all ways of scoring new data where the target is unknown.  Hope that helps!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 557 views
  • 2 likes
  • 2 in conversation