32 lines
993 B
Makefile
32 lines
993 B
Makefile
seed=123456789
|
|
CONFIG=--passes 18 -b 16 --random_seed $(seed) --link logistic --loss_function logistic -k --cache_file vw-meta-cashe
|
|
|
|
all: dev-0/out.tsv test-A/out.tsv
|
|
../geval --test-name dev-0/
|
|
echo "asd"
|
|
|
|
dev-0/data.vw: prepare_data.py
|
|
python3 prepare_data.py dev-0/in.tsv dev-0/expected.tsv > $@
|
|
echo "dev-0/data.vw created"
|
|
|
|
train/data.vw: prepare_data.py
|
|
python3 prepare_data.py train/in.tsv train/expected.tsv > $@
|
|
echo "train/data.vw created"
|
|
|
|
test-A/data.vw: prepare_data.py
|
|
python3 prepare_data.py test-A/in.tsv test-A/expected.tsv > $@
|
|
echo "test-A/data.vw created"
|
|
|
|
model.vw: train/data.vw dev-0/data.vw test-A/data.vw
|
|
echo $<
|
|
vw $< -f $@ $(CONFIG)
|
|
echo "model created"
|
|
|
|
dev-0/out.tsv: model.vw dev-0/data.vw
|
|
vw -t dev-0/data.vw -i $< --link logistic -p /dev/stdout > $@
|
|
test-A/out.tsv: model.vw test-A/data.vw
|
|
vw -t test-A/data.vw -i $< --link logistic -p /dev/stdout > $@
|
|
|
|
clean:
|
|
rm dev-0/out.tsv model.vw train/data.vw test-A/data.vw dev-0/data.vw
|