defaults {ODRF}R Documentation

Default values passed to RotMat*

Description

Given the parameter list and the categorical map this function populates the values of the parameter list accoding to our 'best' known general use case parameters.

Usage

defaults(
  paramList,
  split = "entropy",
  dimX = NULL,
  weights = NULL,
  catLabel = NULL
)

Arguments

paramList

A list (possibly empty), to be populated with a set of default values to be passed to a RotMat* function.

split

The criterion used for splitting the variable. 'gini': gini impurity index (classification, default), 'entropy': information gain (classification) or 'mse': mean square error (regression).

dimX

An integer denoting the number of columns in the design matrix X.

weights

A vector of length same as data that are positive weights.(default NULL)

catLabel

A category labels of class list in predictors. (default NULL, for details see Examples of ODT)

Value

Default parameters of the RotMat* function.

See Also

RotMatPPO RotMatRand RotMatRF RotMatMake

Examples

set.seed(1)
paramList <- list(dimX = 8, numProj = 3, sparsity = 0.25, prob = 0.5)
(paramList <- defaults(paramList, split = "entropy"))

[Package ODRF version 0.0.4 Index]