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

Hello,

 

I would like to save Proc Neural parameter estimates in a file and re-use them to make predictions.  For example, first run:

 

proc neural data=out_training dmdbcat=out.cat_training random=789;
 input PRI_jet_all_pt / level=nominal id=i;
 target label / level=nominal id=o;
 train;
 save outest=out.est;
 run;

 

This saves the parameter estimates in out.est.  Is there a way to run Proc Neural again on different datasets to make predictions, i.e. with the USE statement, e.g.

 

proc neural data=out_training dmdbcat=out.cat_training;
USE out.est;
score out=out outfit=fit;
run;

 

When I run the above I receive the following error ("ERROR: Will not be able to continue"):

 

proc neural data=out_training dmdbcat=out.cat_training;
 use out.est;
 There are no layers in the network.
 ERROR: Will not be able to continue.
 score out=out outfit=fit;
 run;

 

Any ideas?

1 ACCEPTED SOLUTION

Accepted Solutions
jwexler
SAS Employee

Hi, have you tried using data step scorecode (code statement)? Proc neural produces scorecode so you can use this scorecode in a scoring process with data step.

View solution in original post

2 REPLIES 2
jwexler
SAS Employee

Hi, have you tried using data step scorecode (code statement)? Proc neural produces scorecode so you can use this scorecode in a scoring process with data step.

NN1
Calcite | Level 5 NN1
Calcite | Level 5
It worked! Thanks for your help!

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1280 views
  • 0 likes
  • 2 in conversation