rf.fit: Random Forest (RF)

Description Usage Arguments Value Author(s)

Description

Fit a Random Forest with a 'stats'-like formula frontend interface.

Usage

1
2
3
rf.fit(formuler, data = NULL, d = NULL, alpha = NULL, ntrees = 10L,
  bagg = 0.632, method = "classification", depth.max = 5L,
  size = 1L, debug = FALSE, mc.cores = 1L, ...)

Arguments

formuler

ravioli ravioli give me the formuoli.

data

the data associated with the formuler. Note: if you want an intercept, you must add it ahead of time.

d

the number of features to subsample at a split node. Defaults to as.integer(round(sqrt(p))), where p is the dimensionality of the predictor feature space.

alpha

the feature sampling prior. Should be a [p] vector, where p is the number of predictors. Corresponds to alpha for a Dirichlet distribution. If NULL, samples uniformly.

ntrees

the number of trees to construct. Defaults to 10L.

bagg

the relative size of the subsamples for the training set. A numeric s.t. 0 < bagg <= 1. Each subsample will be bagg*nsamples elements. Defaults to 0.632.

method

whether you want "classification" or "regression".

depth.max

the maximum allowed tree depth.

size

the minimum allowed number of samples for an individual node.

debug

whether to save the predictors and responses that are categorized

mc.cores

the number of cores to use. Should be 0 < mc.cores <= parallel::detectCores(). Any unset parameters will default to the values provided above (or the corresponding defaults if unprovided).

Value

an object of class rf.class containing the following:

forest

A list a decision trees.

method

the method used to fit the forest.

Author(s)

Eric Bridgeford


ebridge2/badmf documentation built on June 4, 2019, 8:53 a.m.