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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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