-
Notifications
You must be signed in to change notification settings - Fork 184
/
datasets.gradle
77 lines (67 loc) · 2.46 KB
/
datasets.gradle
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
task downloadDatasetSplice(type: Download) {
def baseUrl = 'https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary'
src([
"${baseUrl}/splice",
"${baseUrl}/splice.t"
])
dest 'src/test/datasets/splice/'
overwrite false
}
task verifyDatasetSpliceTrain(type: Verify, dependsOn: downloadDatasetSplice) {
src 'src/test/datasets/splice/splice'
algorithm 'SHA-256'
checksum 'eee33566cfe8988ec26122460cc712d66c5c5b79b966b259408e803addaa584d'
}
task verifyDatasetSpliceTest(type: Verify, dependsOn: downloadDatasetSplice) {
src 'src/test/datasets/splice/splice.t'
algorithm 'SHA-256'
checksum 'f40da7cfd17860f3f1a1bb7d118f8e86c306d232ca6ac6ddefbaaef266abaa03'
}
task downloadDatasetDna(type: Download) {
def baseUrl = 'https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/multiclass'
src([
"${baseUrl}/dna.scale",
"${baseUrl}/dna.scale.t"
])
dest 'src/test/datasets/dna.scale/'
overwrite false
}
task verifyDatasetDnaTrain(type: Verify, dependsOn: downloadDatasetDna) {
src 'src/test/datasets/dna.scale/dna.scale'
algorithm 'SHA-256'
checksum '03d39477c5e48415e9cd18e006efc8f7a3b5c3deaee8289a72511c35070e3cfe'
}
task verifyDatasetDnaTest(type: Verify, dependsOn: downloadDatasetDna) {
src 'src/test/datasets/dna.scale/dna.scale.t'
algorithm 'SHA-256'
checksum 'd2eeed170e4e38ae2aba6aa4cd27a8ca4ecceb01a7751e8e509bb4e1a6bcef39'
}
task downloadDatasetRcv1(type: Download) {
def baseUrl = 'https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary'
src([
"${baseUrl}/rcv1_train.binary.bz2",
"${baseUrl}/rcv1_test.binary.bz2"
])
dest 'src/test/datasets/rcv1/'
overwrite false
}
task verifyDatasetRcv1Train(type: Verify, dependsOn: downloadDatasetRcv1) {
src 'src/test/datasets/rcv1/rcv1_train.binary.bz2'
algorithm 'SHA-256'
checksum 'dda0c6381811484e284e70dd0641335917debce50948346416fde7fb32fad2e2'
}
task verifyDatasetRcv1Test(type: Verify, dependsOn: downloadDatasetRcv1) {
src 'src/test/datasets/rcv1/rcv1_test.binary.bz2'
algorithm 'SHA-256'
checksum '975ab6c4fd8ea2a88b82e7ba2659ef21bf980ac61b3d8f13d6991739ec0f7aa7'
}
task downloadAndVerifyRcv1 {
dependsOn 'verifyDatasetRcv1Train'
dependsOn 'verifyDatasetRcv1Test'
}
task downloadAndVerifyDatasets {
dependsOn 'verifyDatasetSpliceTrain'
dependsOn 'verifyDatasetSpliceTest'
dependsOn 'verifyDatasetDnaTrain'
dependsOn 'verifyDatasetDnaTest'
}