mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 09:28:51 -06:00
Add benchmark scripts
This commit is contained in:
29
benchmark/Makefile
Normal file
29
benchmark/Makefile
Normal file
@@ -0,0 +1,29 @@
|
||||
CHALLENGES := \
|
||||
stab/ChallengeA \
|
||||
knapsack/ChallengeA
|
||||
|
||||
main: $(addsuffix /performance.png, $(CHALLENGES))
|
||||
|
||||
%/training_data.bin:
|
||||
python benchmark.py train $*
|
||||
|
||||
%/benchmark_baseline.csv: %/training_data.bin
|
||||
python benchmark.py test-baseline $*
|
||||
|
||||
%/benchmark_ml.csv: %/benchmark_baseline.csv
|
||||
python benchmark.py test-ml $*
|
||||
|
||||
%/performance.png: %/benchmark_ml.csv
|
||||
python benchmark.py charts $*
|
||||
|
||||
clean:
|
||||
rm -rvf stab knapsack
|
||||
|
||||
clean-csv:
|
||||
rm -rvf */*/*.csv
|
||||
|
||||
clean-png:
|
||||
rm -rfv */*/*.png
|
||||
|
||||
.PHONY: clean
|
||||
.SECONDARY:
|
||||
Reference in New Issue
Block a user