How do you use a user-defined partition in Enterprise Miner?
First separate training and validation data based on partition indicator variable in SAS EG or using SAS code node and save to project Library.
Then using SAMPLE -> Input data node add these two data into the process flow, and assign their respective roles (Train or valid).
You can use data partition node and input user-defined train, validation and test percentages:
I am not asking how to partition the data. My data set has a validation column where the observations are already identified as test, train, or valid. What I want to know is how I can use that to communicate with Enterprise Miner that the data are already partitioned.
First separate training and validation data based on partition indicator variable in SAS EG or using SAS code node and save to project Library.
Then using SAMPLE -> Input data node add these two data into the process flow, and assign their respective roles (Train or valid).
You can use the following code in the SAS Code node to divide your data into training, validation and test datasets to be used for Enterprise Miner nodes
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;
Put this code in the training code section which is the top icon selected in the image below.
Your flow would/could look something like this:
Catch the SAS Global Forum keynotes, announcements, and tech content!
sasglobalforum.com | #SASGF
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.