Simple Train-Test Split

../../../../_images/traintest.svg

Splits input data into a training and a test dataset

Definition

Input ports

X
Type: table
Description: X
Y
Type: table
Description: Y
Optional number of ports: 0–1 (default: 1)

Output ports

X_train
Type: table
Description: X_train
Y_train
Type: table
Description: Y_train
X_test
Type: table
Description: X_test
Y_test
Type: table
Description: Y_test

Configuration

Stratify (stratify)

Stratify data using Y as class labels

Test size (test_size)

Size of test data as fraction (< 1) of all data

Examples

The node can be found in:

Implementation

class node_crossvalidation.CrossVal_SimpleSplit[source]