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.
- X
- Test data.
Outputs
- predictions
- Predictions for the test data.
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