View source: R/ThresholdSummary.R
getThresholdSummary | R Documentation |
Calculate all measures for sparse ROC
getThresholdSummary(
prediction,
predictionType = "binary",
typeColumn = "evaluation"
)
prediction |
A prediction object |
predictionType |
The type of prediction (binary or survival) |
typeColumn |
A column that is used to stratify the results |
Calculates the TP, FP, TN, FN, TPR, FPR, accuracy, PPF, FOR and Fmeasure from a prediction object
A data.frame with TP, FP, TN, FN, TPR, FPR, accuracy, PPF, FOR and Fmeasure
prediction <- data.frame(rowId = 1:100,
outcomeCount = stats::rbinom(1:100, 1, prob=0.5),
value = runif(100),
evaluation = rep("Train", 100))
summary <- getThresholdSummary(prediction)
str(summary)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.