-
Notifications
You must be signed in to change notification settings - Fork 34
/
Makefile
42 lines (31 loc) · 1.09 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
DATASETS=$(wildcard data/*/data.csv)
FIRST_FEATURES=$(DATASETS:data.csv=X-ui.npz)
FEATURES=$(wildcard data/dummy/X-*.npz)
RESULTS=$(FEATURES:npz=lr.txt) $(FEATURES:npz=fm.txt)
BIG_FEATURES=$(wildcard data/assistments09/X-*.npz)
BIG_RESULTS=$(BIG_FEATURES:npz=lr.txt) $(BIG_FEATURES:npz=fm.txt)
all: $(FIRST_FEATURES) $(RESULTS)
tail -n 10 data/dummy/*.txt
big: $(BIG_RESULTS)
tail -n 10 data/assistments09/*.txt
data/%/X-ui.npz: data/%/data.csv
python encode.py --dataset $* --users --items
python encode.py --dataset $* --skills --wins --fails
python encode.py --dataset $* --items --skills --wins --fails
X-%.lr.txt: X-%.npz
time python lr.py $< > $@
X-%.fm.txt: X-%.npz
time python fm.py $< > $@
clean:
rm -f data/dummy/*.npz data/dummy/*.npy data/dummy/*.txt
fullclean:
rm -f data/*/*.npz data/*/*.npy data/*/*.txt
tmp:
pandoc README.md -o README.html
movie:
python fm.py --d 20 data/movie100k/X-ui.npz
libfm:
git clone https://github.com/srendle/libfm
cd libfm && git reset --hard 91f8504a15120ef6815d6e10cc7dee42eebaab0f && make all
README.html: README.md
pandoc README.md -o README.html