-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
65 lines (47 loc) · 2.65 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
SHELL := /bin/bash
update:
go get -u
go mod tidy
test:
go test -cover $(shell go list ./... | grep -v /vendor/ | grep -v /build/ | grep -v /cmd/) -v -coverprofile=coverage.txt -covermode=atomic
go tool cover -html=coverage.txt -o coverage.html
mnist:
go run cmd/mnist/main.go --dir ./testdata
mnist1:
go run cmd/mnist/main.go --dir ./testdata --epochs 1
cbow:
go run cmd/cbow/main.go
cbow_negative_sampling:
go run cmd/cbow_negative_sampling/main.go
rnnlm:
go run cmd/rnnlm/main.go --dir ./testdata --corpus-size 1000
rnnlm_lstm:
go run cmd/rnnlm_lstm/main.go --dir ./testdata --corpus-size 1000
rnnlm_gru:
go run cmd/rnnlm_gru/main.go --dir ./testdata --corpus-size 1000
rnnlm_gen:
go run cmd/rnnlm_gen/main.go --dir ./testdata --epochs 0
seq2seq:
go run cmd/seq2seq/main.go --dir ./testdata --data-size 10
seq2seq_attention:
go run cmd/seq2seq_attention/main.go --dir ./testdata --data-size 10
datasetdl: mnistdl ptbdl additiondl datedl
mnistdl:
curl -fs -o testdata/train-images-idx3-ubyte.gz https://storage.googleapis.com/cvdf-datasets/mnist/train-images-idx3-ubyte.gz
curl -fs -o testdata/train-labels-idx1-ubyte.gz https://storage.googleapis.com/cvdf-datasets/mnist/train-labels-idx1-ubyte.gz
curl -fs -o testdata/t10k-images-idx3-ubyte.gz https://storage.googleapis.com/cvdf-datasets/mnist/t10k-images-idx3-ubyte.gz
curl -fs -o testdata/t10k-labels-idx1-ubyte.gz https://storage.googleapis.com/cvdf-datasets/mnist/t10k-labels-idx1-ubyte.gz
# https://github.com/zalandoresearch/fashion-mnist
fashiondl:
curl -fs -o testdata/train-images-idx3-ubyte.gz http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/train-images-idx3-ubyte.gz
curl -fs -o testdata/train-labels-idx1-ubyte.gz http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/train-labels-idx1-ubyte.gz
curl -fs -o testdata/t10k-images-idx3-ubyte.gz http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/t10k-images-idx3-ubyte.gz
curl -fs -o testdata/t10k-labels-idx1-ubyte.gz http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/t10k-labels-idx1-ubyte.gz
ptbdl:
curl -fs -o testdata/ptb.train.txt https://raw.githubusercontent.com/tomsercu/lstm/master/data/ptb.train.txt
curl -fs -o testdata/ptb.test.txt https://raw.githubusercontent.com/tomsercu/lstm/master/data/ptb.test.txt
curl -fs -o testdata/ptb.valid.txt https://raw.githubusercontent.com/tomsercu/lstm/master/data/ptb.valid.txt
additiondl:
curl -fs -o testdata/addition.txt https://raw.githubusercontent.com/oreilly-japan/deep-learning-from-scratch-2/master/dataset/addition.txt
datedl:
curl -fs -o testdata/date.txt https://raw.githubusercontent.com/oreilly-japan/deep-learning-from-scratch-2/master/dataset/date.txt