core(x, clbest, Tcycle=20, FUN=KNN.CV, f.par=list(kn=10), constrain=NULL, fix=NULL, shake=FALSE)
KNN.CV
", "PLS.SVM.CV
" , and "PCA.CA.KNN.CV
".nrow(data)
elements. Supervised constraints can be imposed by linking some samples in such a way that if one of them is changed the linked ones must change in the same way (i.e., they are forced to belong to the same class) during the maximization of the cross-validation accuracy procedure. Sample with the same identificative constrain will be forced to stay together.
nrow(data)
elements. The values of this vector must to be TRUE
or FALSE
. By default all elements are FALSE
. Samples with the TRUE
fix value will not change the class label defined in W
during the maximization of the cross-validation accuracy procedure.
shake = FALSE
the cross-validated accuracy is computed with the class defined in W
else the it is not, before the maximization of the cross-validation accuracy procedure.KODAMA
# data(iris)
# u=iris[,-5]
# s=sample(1:150,150,TRUE)
# results=core(u,s)
# unique(s)
# unique(results$c)
Run the code above in your browser using DataLab