Partition: blkbox paritioning

Description Usage Arguments Author(s) Examples

View source: R/blkboxSplit.R

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)

blkbox documentation built on May 19, 2017, 9:05 p.m.

Search within the blkbox package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.