Join us for
RADAR: AI Edition

rebmix (version 2.16.0)

chunk-methods: Extracts Chunk from Train and Test Datasets

Description

Returns (invisibly) the object containing train and test observations \bmx1,,\bmxn as well as true class membership \bmΩg for the test dataset. Vectors \bmx are subvectors of \bmy=(y1,,yd).

Usage

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

Value

Returns an object of class RCLS.chunk.

Arguments

x

see Methods section below.

variables

a vector containing indices of variables in subvectors \bmx. The default value is 1:d.

Methods

signature(x = "RCLS.chunk")

an object of class RCLS.chunk.

Author

Marko Nagode

Examples

Run this code
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

Run the code above in your browser using DataLab