RCLS.chunk: Extracts Chunk from Train and Test Datasets

Description Usage Arguments Value Methods Author(s) Examples

Description

Returns (invisibly) the object containing train and test observations \bm{x}_{1}, …, \bm{x}_{n} as well as true class membership \bm{Ω}_{g} for the test dataset. Vectors \bm{x} are subvectors of \bm{y} = (y_{1}, …, y_{d})^{\top}.

Usage

1
2
3
## S4 method for signature 'RCLS.chunk'
chunk(x = NULL, variables = expression(1:d))
## ... and for other signatures

Arguments

x

see Methods section below.

variables

a vector containing indices of variables in subvectors \bm{x}. The default value is 1:d.

Value

Returns an object of class RCLS.chunk.

Methods

signature(x = "RCLS.chunk")

an object of class RCLS.chunk.

Author(s)

Marko Nagode

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(iris)

# Split dataset into train (75%) and test (25%) subsets.

set.seed(5)

Iris <- split(p = 0.75, Dataset = iris, class = 5)

# Extract chunk from train and test datasets.

Iris14 <- chunk(x = Iris, variables = c(1,4))

Iris14

rebmix documentation built on July 28, 2021, 5:08 p.m.