blkbox paritioning

Share:

Description

Prepares data for standard training and testing, data will be split into training and holdout set and output in a list which can be directly supplied to blkbox.

Usage

1
Partition(data, labels, size, seed)

Arguments

data

A data.frame of the data. Rows represent samples and columns features.

labels

The labels corresponding to the data, order must match with order of rows in data.

size

determines the size of the holdout data, must be a numeric value between 0 and 1 that. Default is 0.8.

seed

Determines the seed used to randomly sample the data by row.

Author(s)

Zachary Davies, Boris Guennewig

Examples

1
2
3
4
5
# Partitioning Data
my_partition = Partition(data = my_data,
                         labels = my_labels)
# Creating a Training & Testing Model
model_1 <- blkbox(data = my_partition)