Skip to content

Commit

Permalink
finds train/test split that is representative of nested cv
Browse files Browse the repository at this point in the history
  • Loading branch information
shraddhapai committed Feb 20, 2018
1 parent d2b9ba7 commit bd6baa2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions misc/PanCancer/getMedianIter.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# get iteration with performance closest to average

datDir <- "/Users/shraddhapai/Dropbox/netDx/BaderLab/2017_TCGA_GBM/output/pruned_180204"

require(netDx)
predSet <- sprintf("%s/rng%i/all/cutoff9/predictionResults.txt",datDir,1:100)
perf <- plotPerf(predSet,predClasses=c("SURVIVEYES","SURVIVENO"))
auroc <- unlist(lapply(perf,function(x) x$auroc))
idx <- which.min(abs(auroc-mean(auroc)))
print(idx)



0 comments on commit bd6baa2

Please sign in to comment.