BookmarkSubscribeRSS Feed
MelodieRush
SAS Employee

This question has come up several times recently so with the help of Mike Stockstill in Tech support I wrote up the answer and published on LinkedIn and wanted to share it here as well.

 

The actual question I got was about how to use a date to specify training and validation datasets, so I address that at the end of my response.

 

LinkedIn Article: How to setup out of time hold out sample in SAS Enterprise Miner

 

The quick answer is to use the Code Node and put the following code in the Train Section

 

data &EM_EXPORT_TRAIN &EM_EXPORT_VALIDATE &EM_EXPORT_TEST;
set &EM_IMPORT_DATA;
if partition_key=1 then output &EM_EXPORT_TRAIN;
else if partition_key=2 then output &EM_EXPORT_VALIDATE;
else if partition_key=3 then output &EM_EXPORT_TEST;
run;

 

Catch the SAS Global Forum keynotes, announcements, and tech content!
sasglobalforum.com | #SASGF



sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 0 replies
  • 857 views
  • 3 likes
  • 1 in conversation