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

Description Usage Arguments Value Examples

View source: R/onlineNewsPopularity.R

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 June 3, 2017, 11:50 a.m.