1. Stratified 70/15/15 Split for Sentiment Classification
NLP EngineerBackground
A team has a small labeled sentiment dataset with uneven positive, negative, and neutral classes that must be split without losing minority class representation in the test set.
Problem
Random splitting can cause severe class distribution drift or leave validation sets with zero instances of rare classes.
How to use
Paste the sentiment CSV data, set the target column to 'label', select 'Train / validation / test' mode with 70% train and 15% validation, set the random seed to 42, and ensure stratification is checked.
targetColumn: "label", splitMode: "standard", trainPercent: 70, valPercent: 15, randomSeed: 42, stratify: true, shuffle: true, exportZip: trueOutcome
Generates train.csv, validation.csv, test.csv, and split_report.json in a ZIP file, keeping class shares aligned across all splits.