Learn R Programming

pacviz (version 1.0.3)

pac.partition: Machine learning data partition

Description

A method of partitioning data between training and testing sets based on the fraction of data used for training

Usage

pac.partition(x, y, l, train_size = 0.7, rand_state = sample(1:2^15, 1))

Value

Two data frames and a list of indicies for the training set

Arguments

x, y

Numeric data

l

Numeric labels data

train_size

Fraction of total data that the SVM will train on

rand_state

Value of the random state used to set the seed