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
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');
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');
Hi Wendy,
Thanks for the reply. Still not getting the validation part in fitstats. I've attached the screen shot.
Thanks,
Srihari
Try with Validate in place of Test on your PARTITION statement. I don't think a test partition is supported.
Thanks Wendy. It is working fine now :-).
Thanks & Regards,
Srihari
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
Hi Anna,
As suggested by you I accepted Wendy'a answer as a solution. Thanks.
Regards,
Srihari
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.