decForestPredict

Purpose

Predicts responses using the output from decForestCFit or decForestRFit and a matrix of independent variables.

Format

predictions = decForestPredict( dfm, X_test );

Input

dfm
An instance of the dfModel structure filled by decForestCFit and containing the following relevant members:
  dfm.variableImportance Matrix, 1 x p, variable importance measure if computation of variable importance is specified, zero otherwise.
  dfm.oobError Scalar, out-of-bag error if OOB error computation is specified, zero otherwise.
  dfm.numClasses Scalar, number of classes or 0 for regression models.
  dfm.opaqueModel Matrix, contains model details for internal use only.
X_test
NxP matrix containing the predictors for the test set.

Output

predictions
Nx1 numeric or string vector, containing the predictions.

See also

decForestCFit, decForestRFit

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 30 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy | Sitemap