training.partitions: training.partitions Split data into training and validation...

Description Usage Arguments Value Examples

Description

training.partitions Split data into training and validation sets

Usage

1
training.partitions(data.train, p = 0.2)

Arguments

data.train

a data frame or matrix of training data to split

p

portion of data for validation

Value

data.train and data.validation

Examples

1
2
3
train <- remove.extra.cols(news_popularity_training)
test <- news_popularity_test
partitions <- training.paritions(train, p = 0.2)

abarciauskas-bgse/cphtbo documentation built on May 10, 2019, 4:09 a.m.