Learn R Programming

SwarmSVM (version 0.1-7)

predict.clusterSVM: Predictions with Clustered Support Vector Machines

Description

The function applies a model (classification) produced by the clusterSVM function to every row of a data matrix and returns the model predictions.

Usage

# S3 method for clusterSVM
predict(object, newdata = NULL, cluster.predict = NULL, ...)

Arguments

object

Object of class "clusterSVM", created by clusterSVM.

newdata

An n x p matrix containing the new input data. Could be a matrix or a sparse matrix object.

cluster.predict

a function predict new labels on newdata.

...

other parameters passing to predict.LiblineaR