BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
dcortell
Pyrite | Level 9

Hi all

 

I've imported a dataset in model studio to build a pipeline on that. Within the dataset, I have a nominal variable which I want use to stratify both the train and test set with specific proportions (example: 30% class 1, 50% class2, 20% class3).

 

Now, I'm not able to find documentation explaining how to perform that stratification nor in the Data tab nor in the pipeline.

 

There is the chance to define the variable with role as "Partition": but then it only allow to assign one class of the variable to one specific set only (ex. class1 to its totality to the training set..)

 

Does anyone know if there is a way to setting a specific stratification in both the sets using a variable from the dataset?

1 ACCEPTED SOLUTION

Accepted Solutions
dcortell
Pyrite | Level 9

Checked, but it seems with current edition of Model studio I can't choose multiple class variable levels to map to a single partition level (training/validation/test) from with-in Model Studio (VML), so I will have do this before the dataset import.

View solution in original post

1 REPLY 1
dcortell
Pyrite | Level 9

Checked, but it seems with current edition of Model studio I can't choose multiple class variable levels to map to a single partition level (training/validation/test) from with-in Model Studio (VML), so I will have do this before the dataset import.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 1 reply
  • 1141 views
  • 0 likes
  • 1 in conversation