BookmarkSubscribeRSS Feed
rob2
Calcite | Level 5

Hi there,

 

given a model file in .sas7bdat format, is there a way to see the model parameters that model file was fitted with from the command line? 

For example to see what the max depth, number of leaves, learning rate etc were originally specified as?    

 

thanks very much for your time!

Rob.

 

 

2 REPLIES 2
Bond007
Obsidian | Level 7

proc contents data=model_file;
run;

 

proc contents basically gives the summarized output of entire dataset, but if it is a model then I am not sure, but it is worth a try.

 

Regards,

Bond.

rob2
Calcite | Level 5

Thank you for that 🙂 

proc contents data='/path_to_file/file.sas7bdat';
run;

 

That does run, and produce some summary information printed to the .lst file

The next bit is how to determine what the model parameters are given the output that produces:

 

I can see the following in the output:

Alphabetic List of Variables and Attributes

# Variable Type Len

Is there a way to list the full contents of the Variables listed here?  I think this step is what would give the answer I'm looking for.

thanks again!

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 378 views
  • 0 likes
  • 2 in conversation