rfcpredict

Predicts target values for the test data points using parameters computed by rfcFit function.

Attention: Available only with Twin Activate commercial edition.

Syntax

predictions = rfcpredict(parameters,X)

Inputs

parameters
Output of rfcFit function.
Type: struct
X
Test data.
Type: double
Dimension: vector | matrix

Outputs

predictions
Predictions for the test data.
Type: double
Dimension: vector | matrix

Example

Usage of rfcpredict

data = dlmread('iris.csv', ',', 1);
X = data(:,1:end-1);
y = data(:,end);

parameters = rfcfit(X, y);
predictions = rfcpredict(parameters, X);
> mean(predictions == y')
ans = 1