diff --git a/README.org b/README.org index f5f1930..edfa733 100644 --- a/README.org +++ b/README.org @@ -1,10 +1,11 @@ -Figures for Labeled Optimal PARTitioning paper +Figures for Labeled Optimal PARTitioning paper - Figure 1: example data and cost computation. [[file:figure-signal-cost.R][R script]], [[file:figure-signal-cost-standAlone.pdf][standAlone pdf]], [[file:figure-signal-cost.tex][tex for inclusion in paper]]. - Figure 2: timings. [[file:figure-timings.R][R script]], tex for inclusion in paper: [[file:figure-timings.tex][time vs number of data]], [[file:figure-timings-labels.tex][time vs number of labels]]. -- Figure 3: label error. [[file:figure-label-errors.R][R script]], [[file:figure-label-errors.pdf][OPART pdf]], [[file:figure-label-errors-SegAnnot.pdf][SegAnnot pdf]]. +- Figure 3: best case label error. [[file:figure-label-errors.R][R script]], [[file:figure-label-errors.pdf][OPART pdf]], [[file:figure-label-errors-SegAnnot.pdf][SegAnnot pdf]]. +- Figure 4: cross-validation label error. [[file:figure-cv.R][R script]], [[file:figure-cv.pdf][pdf]]. Reproducibility: type "make" in the shell. diff --git a/figure-cv.R b/figure-cv.R new file mode 100644 index 0000000..a050530 --- /dev/null +++ b/figure-cv.R @@ -0,0 +1,61 @@ +source("packages.R") + +err.dt <- data.table( + csv=Sys.glob("figure-label-errors-data/*.csv") +)[, data.table::fread( + csv, + colClasses=list(character=5) +), by=csv] +err.dt[model.name=="LOPART" & set=="train", table(errors)] +err.dt[model.name=="LOPART" & set=="train" & 0