-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_06_summary.R
28 lines (22 loc) · 905 Bytes
/
main_06_summary.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# This file is for:
# visulize result
rm(list=ls())
ifolder = "00_Rdata/"
ifolder = "01_Rdata/" # for paper
source("ob_RFres.R")
files = list.files(ifolder,"rf.*25")
tks = files %>% str_extract("(?<=_).*(?=\\.)")
res = RFres$new(ifolder,"rf_.*25")
res$files
res$ifolder
res$tks
# res$showAllMeasure()
res$setMeasure(c("Accuracy","Sensitivity","Specificity"))
res$avgAllToken()
# res$outputPlots("06_Summary/")
res$outputPlots("01_Rdata/")
# available measures
# [1] "Accuracy" "Kappa" "AccuracyLower" "AccuracyUpper" "AccuracyNull"
# [6] "AccuracyPValue" "McnemarPValue" "Sensitivity" "Specificity" "Pos Pred Value"
# [11] "Neg Pred Value" "Precision" "Recall" "F1" "Prevalence"
# [16] "Detection Rate" "Detection Prevalence" "Balanced Accuracy"