Spaces:
Runtime error
Runtime error
CONFIG ?= config/example.json | |
DEVICE ?= cpu | |
MODELDIR ?= models/newsroom-P75/model-dirs/best_val_reward-7950 | |
TESTSET ?= data/test-data/broadcast.jsonl | |
HC_OUTPUT ?= data/hc-outputs/hc.L11.google.jsonl | |
# TRAINING | |
train: | |
python bin/train.py --verbose --config $(CONFIG) --device $(DEVICE) | |
# EVALUATING SCRL MODELS (predict + evaluate) | |
eval-google: | |
python bin/evaluate.py \ | |
--model-dir $(MODELDIR) \ | |
--device $(DEVICE) \ | |
--dataset data/test-data/google.jsonl | |
eval-duc2004: | |
python bin/evaluate.py \ | |
--model-dir $(MODELDIR) \ | |
--device $(DEVICE) \ | |
--dataset data/test-data/duc2004.jsonl \ | |
--max-chars 75 | |
eval-gigaword: | |
python bin/evaluate.py \ | |
--model-dir $(MODELDIR) \ | |
--device $(DEVICE) \ | |
--dataset data/test-data/gigaword.jsonl \ | |
--pretokenized | |
eval-broadcast: | |
python bin/evaluate.py \ | |
--model-dir $(MODELDIR) \ | |
--device $(DEVICE) \ | |
--dataset data/test-data/broadcast.jsonl \ | |
--pretokenized | |
eval-bnc: | |
python bin/evaluate.py \ | |
--model-dir $(MODELDIR) \ | |
--device $(DEVICE) \ | |
--dataset data/test-data/bnc.jsonl \ | |
--pretokenized | |
# EVALUATE HILL CLIMBING SEARCH | |
hc-eval-google: | |
python bin/evaluate_hc_output.py \ | |
--dataset data/test-data/google.jsonl \ | |
--outputs $(HC_OUTPUT) | |
hc-eval-duc2004: | |
python bin/evaluate_hc_output.py \ | |
--dataset data/test-data/duc2004.jsonl \ | |
--outputs $(HC_OUTPUT) | |
hc-eval-gigaword: | |
python bin/evaluate_hc_output.py \ | |
--dataset data/test-data/gigaword.jsonl \ | |
--outputs $(HC_OUTPUT) | |
hc-eval-broadcast: | |
python bin/evaluate_hc_output.py \ | |
--dataset data/test-data/broadcast.jsonl \ | |
--outputs $(HC_OUTPUT) | |
hc-eval-bnc: | |
python bin/evaluate_hc_output.py \ | |
--dataset data/test-data/bnc.jsonl \ | |
--outputs $(HC_OUTPUT) | |