Skip to contents

Create a projection matrix with coefficient 1 and 0 such that the ODRF (ODT) has the same partition variables as the Random Forest (CART).

Usage

RotMatRF(dimX, numProj, catLabel = NULL, ...)

Arguments

dimX

The number of dimensions.

numProj

The number of projection directions (default ceiling(sqrt(dimX))).

catLabel

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

...

Used to handle superfluous arguments passed in using paramList.

Value

A random matrix to use in running ODT.

  • Variable: Variables to be projected.

  • Number: Number of projections.

  • Coefficient: Coefficients of the projection matrix.

Examples

paramList <- list(dimX = 8, numProj = 3, catLabel = NULL)
set.seed(2)
(RotMat <- do.call(RotMatRF, paramList))
#>      Variable Number Coefficient
#> [1,]        5      1           1
#> [2,]        7      2           1
#> [3,]        6      3           1