svcpredict

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

Attention: Available only with Twin Activate commercial edition.

Syntax

predictions = svcpredict(parameters,X)

Inputs

parameters
Output of svcFit 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 svcpredict

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

parameters = svcfit(X, y);
predictions = svcpredict(parameters, X);
predictions = [Matrix] 1 x 2
2.36611 1.87117