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

Hi All,

 

When we execute Proc HPForest in SAS studio results show fitstats for training & Out of Bag(OOB) observations whereas in SAS Eminer results show fitstats for training,OOB and for validation datasets. I'm just wondering why this difference and how can we get fitstats for validation dataset in SAS studio?

 

Regards

Srihari

1 ACCEPTED SOLUTION

Accepted Solutions
WendyCzika
SAS Employee

You would need to have a partition indicator in your data set that determines which observations are included for training and which for validation.  For example for a variable with value 1 for the training observations and 0 for the validation observations, you can use the PARTITION statement in PROC HPFOREST:

 

partition rolevar=Name-of-your-partition-variable (train='1' validate='0');

View solution in original post

6 REPLIES 6
WendyCzika
SAS Employee

You would need to have a partition indicator in your data set that determines which observations are included for training and which for validation.  For example for a variable with value 1 for the training observations and 0 for the validation observations, you can use the PARTITION statement in PROC HPFOREST:

 

partition rolevar=Name-of-your-partition-variable (train='1' validate='0');
Srihari40
Obsidian | Level 7

Hi Wendy, 

 

Thanks for the reply. Still not getting the validation part in fitstats. I've attached the screen shot. 

 

Thanks,

Srihari

WendyCzika
SAS Employee

Try with Validate in place of Test on your PARTITION statement.  I don't think a test partition is supported.

Srihari40
Obsidian | Level 7

Thanks Wendy. It is working fine now :-). 

 

Thanks & Regards,

Srihari

AnnaBrown
Community Manager

Hi Srihari40,

 

I'm glad you found some useful info! If one of the replies was the exact solution to your problem, can you "Accept it as a solution"? Or if one was particularly helpful, feel free to "Like" it. This will help other community members who may run into the same issue know what worked.

Thanks!
Anna

Srihari40
Obsidian | Level 7

Hi Anna,

 

As suggested by you I accepted Wendy'a answer as a solution. Thanks.

 

Regards,

Srihari

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 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
  • 6 replies
  • 2914 views
  • 5 likes
  • 3 in conversation