Skip to content

Commit 124f6ef

Browse files
committedMar 8, 2015
[example] revise hdf5 classification
- add a little explanation - solve from Python and the command line - time scikit-learn and caffe - fix test iterations (number of instances / batch size)
1 parent e2656e0 commit 124f6ef

File tree

5 files changed

+702
-576
lines changed

5 files changed

+702
-576
lines changed
 

‎examples/hdf5_classification.ipynb

+692-566
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
net: "examples/hdf5_classification/train_val.prototxt"
2-
test_iter: 1000
1+
net: "hdf5_classification/train_val.prototxt"
2+
test_iter: 250
33
test_interval: 1000
44
base_lr: 0.01
55
lr_policy: "step"
@@ -10,5 +10,5 @@ max_iter: 10000
1010
momentum: 0.9
1111
weight_decay: 0.0005
1212
snapshot: 10000
13-
snapshot_prefix: "examples/hdf5_classification/data/train"
13+
snapshot_prefix: "hdf5_classification/data/train"
1414
solver_mode: CPU
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
net: "examples/hdf5_classification/train_val2.prototxt"
2-
test_iter: 1000
1+
net: "hdf5_classification/train_val2.prototxt"
2+
test_iter: 250
33
test_interval: 1000
44
base_lr: 0.01
55
lr_policy: "step"
@@ -10,5 +10,5 @@ max_iter: 10000
1010
momentum: 0.9
1111
weight_decay: 0.0005
1212
snapshot: 10000
13-
snapshot_prefix: "examples/hdf5_classification/data/train"
13+
snapshot_prefix: "hdf5_classification/data/train"
1414
solver_mode: CPU

‎examples/hdf5_classification/train_val.prototxt

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ layer {
88
phase: TRAIN
99
}
1010
hdf5_data_param {
11-
source: "examples/hdf5_classification/data/train.txt"
11+
source: "hdf5_classification/data/train.txt"
1212
batch_size: 10
1313
}
1414
}
@@ -21,7 +21,7 @@ layer {
2121
phase: TEST
2222
}
2323
hdf5_data_param {
24-
source: "examples/hdf5_classification/data/test.txt"
24+
source: "hdf5_classification/data/test.txt"
2525
batch_size: 10
2626
}
2727
}

‎examples/hdf5_classification/train_val2.prototxt

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ layer {
88
phase: TRAIN
99
}
1010
hdf5_data_param {
11-
source: "examples/hdf5_classification/data/train.txt"
11+
source: "hdf5_classification/data/train.txt"
1212
batch_size: 10
1313
}
1414
}
@@ -21,7 +21,7 @@ layer {
2121
phase: TEST
2222
}
2323
hdf5_data_param {
24-
source: "examples/hdf5_classification/data/test.txt"
24+
source: "hdf5_classification/data/test.txt"
2525
batch_size: 10
2626
}
2727
}

0 commit comments

Comments
 (0)
Please sign in to comment.