From 1566d67a1b8530c91a1e28636b398b1973addc3f Mon Sep 17 00:00:00 2001 From: Alinson S Xavier Date: Tue, 17 Mar 2020 10:12:55 -0500 Subject: [PATCH] Update compiled docs --- docs/benchmark/index.html | 9 +- docs/index.html | 4 +- docs/search/lunr.js | 779 +++++++--------------------------- docs/search/search_index.json | 2 +- docs/sitemap.xml | 30 +- docs/sitemap.xml.gz | Bin 198 -> 199 bytes docs/usage/index.html | 67 +-- 7 files changed, 210 insertions(+), 681 deletions(-) diff --git a/docs/benchmark/index.html b/docs/benchmark/index.html index 11ef9e8..2f672ad 100644 --- a/docs/benchmark/index.html +++ b/docs/benchmark/index.html @@ -151,7 +151,6 @@ test_instances = [...] # Training phase... training_solver = LearningSolver(...) training_solver.parallel_solve(train_instances, n_jobs=10) -training_solver.save_state("data.bin") # Test phase... test_solvers = { @@ -161,13 +160,12 @@ test_solvers = { "Strategy C": LearningSolver(...), } benchmark = BenchmarkRunner(test_solvers) -benchmark.load_state("data.bin") -benchmark.fit() +benchmark.fit(train_instances) benchmark.parallel_solve(test_instances, n_jobs=2) print(benchmark.raw_results()) -

The method load_state loads the saved training data into each one of the provided solvers, while fit trains their respective ML models. The method parallel_solve solves the test instances in parallel, and collects solver statistics such as running time and optimal value. Finally, raw_results produces a table of results (Pandas DataFrame) with the following columns:

+

The method fit trains the ML models for each individual solver. The method parallel_solve solves the test instances in parallel, and collects solver statistics such as running time and optimal value. Finally, raw_results produces a table of results (Pandas DataFrame) with the following columns: