core_cpp | R Documentation |
This function performs the maximization of cross-validated accuracy by an iterative process
core_cpp(x,
xTdata = NULL,
clbest,
Tcycle = 20,
FUN = c("fastpls","simpls"),
f.par.pls = 5,
constrain = NULL,
fix = NULL)
x |
a matrix. |
xTdata |
a matrix for projections. This matrix contains samples that are not used for the maximization of the cross-validated accuracy. Their classification is obtained by predicting samples on the basis of the final classification vector. |
clbest |
a vector to optimize. |
Tcycle |
number of iterative cycles that leads to the maximization of cross-validated accuracy. |
FUN |
classifier to be consider. Choices are " |
f.par.pls |
parameters of the classifier. If the classifier is |
constrain |
a vector of |
fix |
a vector of |
The function returns a list with 3 items:
clbest |
a classification vector with a maximized cross-validated accuracy. |
accbest |
the maximum cross-validated accuracy achieved. |
vect_acc |
a vector of all cross-validated accuracies obtained. |
vect_proj |
a prediction of samples in |
Stefano Cacciatore and Leonardo Tenori
Abdel-Shafy EA, Kassim M, Vignol A, et al.
KODAMA enables self-guided weakly supervised learning in spatial transcriptomics.
bioRxiv 2025. doi: 10.1101/2025.05.28.656544. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1101/2025.05.28.656544")}
Cacciatore S, Luchinat C, Tenori L
Knowledge discovery by accuracy maximization.
Proc Natl Acad Sci U S A 2014;111(14):5117-5122. doi: 10.1073/pnas.1220873111. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1073/pnas.1220873111")}
Cacciatore S, Tenori L, Luchinat C, Bennett PR, MacIntyre DA
KODAMA: an updated R package for knowledge discovery and data mining.
Bioinformatics 2017;33(4):621-623. doi: 10.1093/bioinformatics/btw705. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1093/bioinformatics/btw705")}
KODAMA.matrix
,KODAMA.visualization
# Here, the famous (Fisher's or Anderson's) iris data set was loaded
data(iris)
u=as.matrix(iris[,-5])
s=sample(1:150,150,TRUE)
# The maximization of the accuracy of the vector s is performed
results=core_cpp(u, clbest=s,f.par.pls = 4)
print(as.numeric(results$clbest))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.