L_score | R Documentation |
Leave one feature out cross validation loss for a given dendrogram and dataset. This is an auxiliary function to the main functions CVL and PFIS but can be used separately.
L_score(dend, original_data, seed = 99, ncores = 2, score = FALSE)
dend |
Dendrogram of interest (an object of class "phylo") |
original_data |
Entire dataset (data.frame or matrix) or feature of interest (numeric or factor vector) to compute cross validate loss |
seed |
Fixed random seed for SIMMAP algorithm. Default is 99. |
ncores |
Number of cores to paralelize the computing process. Default is 2. |
score |
Set whether a vector of leave one feature out loss should be computed (TRUE) or compute the overall mean of the loss directly (FALSE) |
A numeric vector of leave one feature out losses.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.