- x
the nxp training data matrix. Could be a matrix or a sparse matrix object.
- y
a response vector for prediction tasks with one value for each of the n rows of x
.
For classification, the values correspond to class labels and can be a 1xn matrix,
a simple vector or a factor.
- k
the number of sub-problems divided
- m
the number of sample for kernel kmeans
- kernel
the kernel type: 1 for linear, 2 for polynomial, 3 for gaussian
- max.levels
the maximum number of level
- early
whether use early prediction
- final.training
whether train the svm over the entire data again. usually not needed.
- pre.scale
either a logical value indicating whether to scale the data or not, or an integer vector specifying the columns.
We don't scale data in SVM seperately.
- seed
the random seed. Set it to NULL
to randomize the model.
- verbose
a logical value indicating whether to print information of training.
- valid.x
the mxp validation data matrix.
- valid.y
if provided, it will be used to calculate the validation score with valid.metric
- valid.metric
the metric function for the validation result. By default it is the accuracy for classification.
Customized metric is acceptable.
- cluster.method
The clusterign algorithm to use. Possible choices are
"kmeans" Algorithm from stats::kmeans
"mlKmeans" Algorithm from RcppMLPACK::mlKmeans
"kernkmeans" Algorithm from kernlab::kkmeans
If cluster.fun
and cluster.predict
are provided, cluster.method
doesn't work anymore.
- cluster.fun
The function to train cluster labels for the data based on given number of centers.
Customized function is acceptable, as long as the resulting list contains two fields named as cluster
and centers
.
- cluster.predict
The function to predict cluster labels for the data based on trained object.
Customized function is acceptable, as long as the resulting list contains two fields named as cluster
and centers
.
- ...
other parameters passed to e1071::svm