-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
91 lines (75 loc) · 2.93 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
NAME := duet
ARGS := run examples/presna-crisis.eps.duet data_short/incoming.csv data_short/outgoing.csv 1.0
ARGS := run examples/presna-crisis.ed.duet data_short/incoming.csv data_short/outgoing.csv 0.05 1.0
ARGS := check examples/gd-pb-mini.tcdp.duet
ARGS := run examples/gd-pb-mini.tcdp.duet data_long/adpxs.csv data_long/adpys.csv 0.05 11 100 1 50
ARGS := check examples/gd-pb-mini.renyi.duet
ARGS := run examples/gd-pb-mini.renyi.duet data_short/ffxs.csv data_short/ffys.csv 0.05 6 100 1 50
ARGS := check examples/plambda-bad.eps.duet
ARGS := run examples/gd-pb-mini.ed.duet data_short/xs.csv data_short/ys.csv 100000 100 0.0001 0.0001 1 50
ARGS := run examples/gd-pb.ed.duet data_short/xs.csv data_short/ys.csv 0.05 100 0.0001 0.0001 1
ARGS := run examples/gd-pb.ed.duet data_long/adpxs.csv data_long/adpys.csv 0.05 100 0.0001 0.0001 1
ARGS := run examples/gd-pb-mini.ed.duet data_long/adpxs.csv data_long/adpys.csv 10000 100 0.0001 0.0001 1 50
ARGS := lr-accuracy data_long/adpxs.csv data_long/adpys.csv out/model.csv
ARGS := check examples/baby-map-s.ed.duet
ARGS := check examples/normalize.ed.duet
ARGS := check examples/gd-pb.ed.duet
ARGS := check examples/bolt-on.ed.duet
ARGS := check examples/fw.ed.duet
ARGS := check examples/gd-pb-mini.ed.duet
ARGS := check examples/parallel-privacy.ed.duet
ARGS := check examples/gd-unbounded-pb.ed.duet
ARGS := check examples/hyperparam.ed.duet
ARGS := check examples/adaptive-clip.ed.duet
ARGS := check examples/normalize.ed.duet
ARGS := run examples/complete/presna-queries.eps.duet 1 data_short/incoming.csv data_short/outgoing.csv data_short/normal.csv data_short/crisis_warning.csv 1.0
ARGS := run examples/complete/scheduling.ed.duet data_short/schedule.csv 100
# run examples/gd-pb-mini.ed.duet data_short/fbxs.csv data_short/fbys.csv 0.05 100 0.0001 0.0001 1 50
# run examples/parallel-simple.ed.duet data_short/made_up.csv 0.05 0.0001 0 0 0 1
# run examples/basic-boxing.ed.duet 1
# run examples/baby.ed.duet 0.05 0.0001 data_short/made_up.csv
# Run Using GHCI
# stack ghci
# :set args check "examples/gd-pb.ed.duet"
# main
default:
./examples.sh
all:
./all_examples.sh
.PHONY: run
run: $(NAME).cabal
stack run -- $(ARGS)
.PHONY: run-profile
run-profile: $(NAME).cabal
stack run --profile -- $(ARGS)
.PHONY: interact
interact: $(NAME).cabal
# echo ":set args $(ARGS)\n:main" | stack ghci $(NAME)
stack ghci $(NAME)
.PHONY: build
build: $(NAME).cabal
stack build --fast
.PHONY: build-profile
build-profile: $(NAME).cabal
stack build --profile
.PHONY: install
install: $(NAME).cabal
stack install
.PHONY: configure
configure: $(NAME).cabal
# .PHONY: doc
# doc:
# stack haddock
# cp -r `stack path --local-doc-root` ./
.PHONY: clean
clean:
stack clean --full
rm -f $(NAME).cabal
rm -rf doc
# .PHONY: hoogle
# hoogle:
# stack hoogle -- generate --local
# (sleep 1 && open http://localhost:8080/?scope=package%3A$(NAME)) &
# stack hoogle -- server --local --port=8080
$(NAME).cabal: package.yaml
hpack --force