mirror of
https://github.com/Doctorado-ML/benchmark.git
synced 2025-08-17 08:25:53 +00:00
Reformat benchmark.r
This commit is contained in:
@@ -8,19 +8,19 @@ destination <- "exreport/"
|
|||||||
results <- read.csv(csv_file)
|
results <- read.csv(csv_file)
|
||||||
library(exreport)
|
library(exreport)
|
||||||
experiment <- expCreate(results, method="classifier", problem="dataset", name="Stree")
|
experiment <- expCreate(results, method="classifier", problem="dataset", name="Stree")
|
||||||
testAccuracy <- testMultipleControl(experiment, args[1], "max")
|
testScore <- testMultipleControl(experiment, args[1], "max")
|
||||||
summary(testAccuracy)
|
summary(testScore)
|
||||||
table1 <- tabularTestSummary(testAccuracy, columns = c("pvalue", "rank", "wtl"))
|
table1 <- tabularTestSummary(testScore, columns = c("pvalue", "rank", "wtl"))
|
||||||
table1
|
table1
|
||||||
plot1 <- plotExpSummary(experiment, args[1], columns = 3)
|
plot1 <- plotExpSummary(experiment, args[1], columns = 3)
|
||||||
plot2 <- plotCumulativeRank(testAccuracy)
|
plot2 <- plotCumulativeRank(testScore)
|
||||||
plot3 <- plotRankDistribution(testAccuracy)
|
plot3 <- plotRankDistribution(testScore)
|
||||||
|
|
||||||
report <- exreport("Stree Report")
|
report <- exreport("Stree Report")
|
||||||
# Add the experiment object for reference:
|
# Add the experiment object for reference:
|
||||||
report <- exreportAdd(report, experiment)
|
report <- exreportAdd(report, experiment)
|
||||||
# Now add the test:
|
# Now add the test:
|
||||||
report <- exreportAdd(report, testAccuracy)
|
report <- exreportAdd(report, testScore)
|
||||||
# Finally you can add the different tables and plots.
|
# Finally you can add the different tables and plots.
|
||||||
report <- exreportAdd(report, list(plot1, plot2, table1, plot3))
|
report <- exreportAdd(report, list(plot1, plot2, table1, plot3))
|
||||||
# At this point we would like to include an additional item in our report. We need a detailed table of our experiment,
|
# At this point we would like to include an additional item in our report. We need a detailed table of our experiment,
|
||||||
|
Reference in New Issue
Block a user