FrechForest: Frechet Random Forest

Description Usage Arguments Value

View source: R/FrechForest.R

Description

This function builds Frechet random Forest introduced by Capitaine et.al, this includes the OOB predictions, OOB errors and variable importance computations.

Usage

1
2
3
4
FrechForest(Curve = NULL, Scalar = NULL, Factor = NULL,
  Shape = NULL, Image = NULL, Y, mtry = NULL, ntree = 100,
  ncores = NULL, ERT = FALSE, timeScale = 0.1, ntry = 3,
  imp = TRUE, ...)

Arguments

Curve

[list]: A list that contains the different input curves. It must contain the following elements (no choice): X the matrix of the different curves, each column code for a different curve variable; id is the vector of the identifiers for the different trajectories contained in X; time is the vector of the measurement times associated with the trajectories contained in X.

Scalar

[list]: A list that contains the different input scalars. It must contain the following elements (no choice): X the matrix of the scalars, each column code for a different variable; id is the vector of the identifiers for each individual.

Factor

[list]: A list that contains the different input factors. It must contain the following elements (no choice): X the matrix of the factors, each column code for a different variable; id is the vector of the identifiers for each individual.

Shape

[list]: A list that contains the different input shapes. It must contain the following elements (no choice): X the array of the shapes of dimension nx2xlxp where n is the number of points for composing each shape, l is the number of shapes and p is the number of shapes variables, id is the vector of the identifiers for each individual.

Image

[list]: A list that contains the different input images. It must contain the following elements (no choice): X the array of the images of dimension nxmxlxp where n*m is the size of each image, l is the number of images and p is the number of shapes variables; id is the vector of the identifiers for each individual.

Y

[list]: A list that contains the output, It must contain the following elements (no choice): type defines the nature of the output, can be "curve", "sclalar", "factor", "shape", "image"; Y is the output variable; id is the vector of the identifiers for each individuals, they should be the same as the identifiers of the inputs.

mtry

[numeric]: Number of variables randomly sampled as candidates at each split. The default value p/3

ntree

[numeric]: Number of trees to grow. This should not be set to too small a number, to ensure that every input row gets predicted at least a few times.

ncores

[numeric]: Number of cores used to build Frechet randomized trees in parallel, defaulting to number of cores of the computer minus 1.

ERT

[logical]: If TRUE uses Extremly Randomized Frechet Trees to build the Frechet forest.

timeScale

[numeric]: Allow to modify the time scale, increasing or decreasing the cost of the horizontal shift. If timeScale is very big, then the Frechet mean tends to the Euclidean distance. If timeScale is very small, then it tends to the Dynamic Time Warping. Only used when there are trajectories either in input or output.

ntry

[numeric]: Only with ERT=TRUE, allows to manage with randomness of the trees.

imp

[logical]: TRUE to compute the variables importance FALSE otherwise (default imp=TRUE)

...

: optional parameters to be passed to the low level function

Value

A Frechet random forest which is a list of the following elements:


FrechForest documentation built on July 1, 2020, 6:44 p.m.