generate_splits: Generate Splits Possibilities

Description Usage Arguments Value Author(s) Examples

View source: R/generate_splits.R

Description

generate_splits returns a matrix with the different splits of the variables in reach row.

Usage

1
generate_splits(p, G, use.all = TRUE, fix.partition = NULL, verbose = TRUE)

Arguments

p

Number of variables or objects to split.

G

Number of groups into which the variables are split.

use.all

Boolean variable to determine if all variables must be used (default is TRUE).

fix.partition

Optional matrix with G columns (or list if more than one value of G) indicating the partitions (in each row) to be considered for the splits.

verbose

Boolean variable to determine if console output for cross-validation progress is printed (default is TRUE).

Value

A matrix with the different splits of the variables in the groups.

Author(s)

Anthony-Alexander Christidis, anthony.christidis@stat.ubc.ca

Examples

1
2
3
4
5
6
7
# Generating the possible splits of 6 variables in 3 groups
# Using all the variables
split.3groups.all <- generate_splits(6, 3)
split.3groups.all
# Without using all the variables
split.3groups <- generate_splits(6, 3, use.all=FALSE)
split.3groups

splitSelect documentation built on Nov. 9, 2021, 9:07 a.m.