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

I have used to following code to train a neural net model:

 

William29_0-1724985291295.png

I then exported the model so that I can use it in a different sas file to score data using the following code which is part of the same file as the code above:

William29_1-1724985390247.png

 

In a different file, I then import the model and use it to score new data using the following code:

 

William29_2-1724985484612.png

However this generates the following error:

 

William29_3-1724985593987.png

I have the feeling that you cant simple export and import a model generated by the inmodel statement like a normal dataset. So how do I export and import it. Different model types have a SAVESTATE statement that can be used with PROC ASTORE to properly IMPORT and EXPORT the model but PROC NNET does not have the option for a SAVESTATE statement so how can this be done?

 

1 ACCEPTED SOLUTION

Accepted Solutions
sbxkoenk
SAS Super FREQ

Tell us about the SAS version you are using.
Submit

%PUT &=sysvlong4;

... and tell us what's in the log-screen.

 

 

If I look at the latest 2024.08 documentation
(https://go.documentation.sas.com/doc/en/pgmsascdc/v_054/casml/casml_nnet_syntax12.htm) , there is a 

  • SAVESTATE Statement (to create an analytic store) and a 
  • CODE Statement (that returns the SAS score code)

Both ways can be used to score data similar to the input data.

Koen

View solution in original post

2 REPLIES 2
sbxkoenk
SAS Super FREQ

Tell us about the SAS version you are using.
Submit

%PUT &=sysvlong4;

... and tell us what's in the log-screen.

 

 

If I look at the latest 2024.08 documentation
(https://go.documentation.sas.com/doc/en/pgmsascdc/v_054/casml/casml_nnet_syntax12.htm) , there is a 

  • SAVESTATE Statement (to create an analytic store) and a 
  • CODE Statement (that returns the SAS score code)

Both ways can be used to score data similar to the input data.

Koen

William29
Obsidian | Level 7

When i put in that code i get the following:

 

V.03.05M0P11112019

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