BookmarkSubscribeRSS Feed
bachfan
Calcite | Level 5


I have trained an SVM model with great success. Now I bring in another dataset for scoring. It has all the attributes except the target variable.

However, I got an error below. Does it mean that SVM scoring function is not provided in SAS EM 12.1? Thank you.

19570 +proc svmscore data= &em_score_output inest=EMWS1.SVM_OUTEST infit=EMWS1.SVM_SVMFITSTAT inclass=EMWS1.SVM_OUTCLASS

19571 +              out = &em_score_output(rename=(_F_=F_target_ind _I_=I_target_ind))

19572 +;

19573 +run;

ERROR: Variable Replicate not found on data set.

WARNING: This is an experimental release of the SVMSCORE procedure. It has not had the same level of testing as other components of the SAS system.

NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set EMWS1.SVM_SCORE may be incomplete.  When this step was stopped there were 0 observations and 0 variables. WARNING: Data set EMWS1.SVM_SCORE was not replaced because this step was stopped.

2 REPLIES 2
stat_sas
Ammonite | Level 13

Never used SVM but from the above detail seems like your training algorithm requires "Replicate" variable which is missing in scoring dataset.

RalphAbbey
SAS Employee

What stat@sas says is correct. Without seeing more, the error indicates that you used the variable "Replicate" on the training data set. If this variable is not in the data set you wish to score, you receive that error that you have shown.

One way to avoid this is to retrain your model, but remove the variable "Replicate" from the training data set (or just don't tell svm to use that variable). Then when you go to score, the "proc svmscore" will not look for that variable on the scoring data set.

This is about as much advice I can offer without knowing more about your situation. I hope it 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
  • 2 replies
  • 2213 views
  • 0 likes
  • 3 in conversation