Hi,
I have used proc contents on this file and it just gives the basic details. Is there any method to fetch the details such as parameters selected for the model etc from this file.
Thanks,
Bond.
What "file"?
what model?
Depending on what model procedure you run and options then the content of output sets may have information. But you likely have to have show use the model code used and tell us what you want to find.
The typical options that may output parameters would have a variable named parameter, or similar, and Proc Contents would not tell you the values only that a variable of that name existed.
All I have is a model file, I don't have a code used to train the model file. Is there any way where I can get the details from the model file itself.
Now, no. If that information is not in your data, it is not retrievable.
However, if you have the original input data and could run the model again, the answer would change to yes. You would need to examine the documentation to see whether the procedure supports the OUT= option, the OUTPUT statement, or some other option or statement to capture the information you want. If not, you can still get the information by adding to your program:
ods trace on;
** run the modeling procedure here;
run;
ods trace off;
That will reveal the pieces of output you could retrieve when you re-run the program, if you were to add ODS OUTPUT statements. But you need to identify by name which pieces you would like to capture.
I have a model file and I don't have access to the code used to create that model, can I use the model file to classify the new data?
How can I accomplish this in SAS?
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.