optimal_threshold | R Documentation |
Determine optimal one-vs-rest classification thresholds from fitted hidden genome models using prediction-based performance measures
optimal_threshold(
fit,
measure = "fscore",
fitted_prob = NULL,
true_labels = NULL,
...
)
fit |
fitted hidden genome classifier object. Experimental: can be NULL, in which case
|
measure |
prediction assessment measure. Options include "fscore", "mcc" (Mathews Correlation Coefficient). Can be a vector. |
fitted_prob |
an n_tumor x n_cancer matrix of predicted classification probabilities of
(corresponding to the "true" class labels provided in |
If length(measure) == 1
the function returns a named vector with optimal
one-vs-rest classification thresholds for all cancer
classes in the fitted hidden genome object (fit). The optimal
values obtained at the corresponding optimal thresholds are
returned as an attribute "optimal_value".
If length(measure) > 1
a named list is returned, with each
entry providing the optimal thresholds across all cancer categories
(along with the associated optimal measure values as an attribute)
corresponding to that measure
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.