-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (23 loc) · 930 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
build:
@echo
@echo --- rebuilding image ---
docker build -t certitude:dev .
test-train:
@echo
@echo --- creating new model using labelled dataset ---
docker run -it -v $$(pwd)/tests/data:/data certitude:dev --train /data/newmodel101.joblib -d /data/testset_labeled.csv
test-use-existing-model-unlabelled-batch:
@echo
@echo --- classifying batch of url against existing model ---
docker run -it -v $$(pwd)/tests/data:/data certitude:dev -m /data/newmodel101.joblib --batch /data/testset.csv
test-single:
@echo
@echo --- classifying single url against existing model ---
docker run -it -v $$(pwd)/tests/data:/data certitude:dev --url https://www.google.com -m /data/newmodel101.joblib
delete:
@echo
@echo --- deleting existing model ---
rm $$(pwd)/tests/data/newmodel101.joblib || true
demo: delete build test-train test-use-existing-model-unlabelled-batch test-single delete
@echo
@echo --- Everything OK ---