split_data: Split data

Description Usage Arguments Value Examples

View source: R/split_data_class.R

Description

The data matrix is divided into two subsets.A predefined proportion of the samples are randomly selected for a training set, and the remaining samples are used for the test set.

Usage

1
split_data(p_train, ...)

Arguments

p_train

(numeric) The proportion of samples selected for the training set.

...

Additional slots and values passed to struct_class.

Value

A split_data object.

Examples

1
M = split_data(p_train=0.75)

structToolbox documentation built on Nov. 8, 2020, 6:54 p.m.