Transform a data matrix according to the kmeans clustering result based on Gu, Quanquan, and Jiawei Han. "Clustered support vector machines."
csvmTransform(x, lambda, cluster.label, sparse = TRUE)The data matrix, could be a matrix or dgCMatrix object.
The parameter from the algorithm
The clustering label starting from 1. Its length must equal to the number of rows in x
Logical argument indicating whether the output should be a sparse matrix or not