blkbox (version 1.0)

Partition: blkbox paritioning

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

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.

Examples

Run this code

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

Run the code above in your browser using DataLab