train_test_split: train_test_split

Description Usage Arguments Value

View source: R/train_models.R

Description

Helper function to split data into training and testing sets.

Usage

1
train_test_split(X, y, test_size = 0.2)

Arguments

X

data.frame or matrix of data

y

Labels (optional).

test_size

Proportion of samples to set aside for testing.

Value

List of X_train, X_test, y_train, y_test


alex-gottlieb/deepIdeology documentation built on Nov. 1, 2019, 9:09 p.m.