splitDnnet: A function to split the 'dnnetInput' object into a list of...

Description Usage Arguments Value See Also

View source: R/2-1-import.R

Description

A function to split the dnnetInput object into a list of two dnnetInput objects: one names train and the other named valid.

Usage

1
splitDnnet(object, split)

Arguments

object

A dnnetInput object.

split

A character, numeric variable or a numeric vector declaring a way to split the dnnetInput. If it's number between 0 and 1, all samples will be split into two subsets randomly, with the train containing such proportion of all samples and valid containing the rest. If split is a character and is "bootstrap", the train will be a bootstrap sample of the original data set and the valid will contain out-of-bag samples. If split is a vector of integers, the train will contain samples whose indice are in the vector, and valid will contain the rest.

Value

Returns a list of two dnnetInput objects.

See Also

dnnetInput-class


SkadiEye/dnnet documentation built on March 26, 2020, 8:13 a.m.