functionalDetectionStats | R Documentation |
Given a vector functional (true) attribute associations and a vector of positive associations, returns detection statistics like true positive rate, recall and precision.
functionalDetectionStats(functional, positives)
functional |
A vector functional (true) attributes |
positives |
A vector of positive associations |
A list with:
True Positive
False Positive
False Negative
True Positive Rate
False Positive Rate
Fraction of relevant features among the retrieved features
Fraction of total relevant features that were actually retrieved
num.samples <- 100 num.variables <- 100 pct.signals <- 0.1 label <- "class" sim.data <- createSimulation(num.samples = num.samples, num.variables = num.variables, pct.signals = pct.signals, sim.type = "mainEffect", label = label, verbose = FALSE) rnCV.results <- regular_nestedCV(train.ds = sim.data$train, validation.ds = sim.data$holdout, label = label, is.simulated = TRUE, ncv_folds = c(10, 10), param.tune = FALSE, learning_method = "rf", importance.algorithm = "ReliefFbestK", num_tree = 500, verbose = FALSE) functional <- data.sets$signal.names rncv.positives <- rncv_result$Features rncv.detect <- functionalDetectionStats(functional, rncv.positives)
Other nestedCV:
consensus_nestedCV()
,
regular_nestedCV()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.