Rdocumentation
powered by
Learn R Programming
SwarmSVM (version 0.1)
csvmTransform: Data Transformation function for Clustered Support Vector Machine
Description
Transform a data matrix according to the kmeans clustering result based on Gu, Quanquan, and Jiawei Han. "Clustered support vector machines."
Usage
csvmTransform(x, lambda, cluster.label, sparse = TRUE)
Arguments
x
The data matrix, could be a
matrix
or
dgCMatrix
object.
lambda
The parameter from the algorithm
cluster.label
The clustering label starting from 1. Its length must equal to the number of rows in
x
sparse
Logical argument indicating whether the output should be a sparse matrix or not