Skip to content

Commit

Permalink
[docs] revise hdf5 classification
Browse files Browse the repository at this point in the history
- add a little explanation
- solve from Python and the command line
- time scikit-learn and caffe
- fix test iterations (number of instances / batch size)
  • Loading branch information
shelhamer committed Mar 7, 2015
1 parent e3f048e commit 2917b4a
Show file tree
Hide file tree
Showing 5 changed files with 702 additions and 576 deletions.
1,258 changes: 692 additions & 566 deletions examples/hdf5_classification.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/hdf5_classification/solver.prototxt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
net: "examples/hdf5_classification/train_val.prototxt"
test_iter: 1000
net: "hdf5_classification/train_val.prototxt"
test_iter: 250
test_interval: 1000
base_lr: 0.01
lr_policy: "step"
Expand All @@ -10,5 +10,5 @@ max_iter: 10000
momentum: 0.9
weight_decay: 0.0005
snapshot: 10000
snapshot_prefix: "examples/hdf5_classification/data/train"
snapshot_prefix: "hdf5_classification/data/train"
solver_mode: CPU
6 changes: 3 additions & 3 deletions examples/hdf5_classification/solver2.prototxt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
net: "examples/hdf5_classification/train_val2.prototxt"
test_iter: 1000
net: "hdf5_classification/train_val2.prototxt"
test_iter: 250
test_interval: 1000
base_lr: 0.01
lr_policy: "step"
Expand All @@ -10,5 +10,5 @@ max_iter: 10000
momentum: 0.9
weight_decay: 0.0005
snapshot: 10000
snapshot_prefix: "examples/hdf5_classification/data/train"
snapshot_prefix: "hdf5_classification/data/train"
solver_mode: CPU
4 changes: 2 additions & 2 deletions examples/hdf5_classification/train_val.prototxt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ layer {
phase: TRAIN
}
hdf5_data_param {
source: "examples/hdf5_classification/data/train.txt"
source: "hdf5_classification/data/train.txt"
batch_size: 10
}
}
Expand All @@ -21,7 +21,7 @@ layer {
phase: TEST
}
hdf5_data_param {
source: "examples/hdf5_classification/data/test.txt"
source: "hdf5_classification/data/test.txt"
batch_size: 10
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/hdf5_classification/train_val2.prototxt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ layer {
phase: TRAIN
}
hdf5_data_param {
source: "examples/hdf5_classification/data/train.txt"
source: "hdf5_classification/data/train.txt"
batch_size: 10
}
}
Expand All @@ -21,7 +21,7 @@ layer {
phase: TEST
}
hdf5_data_param {
source: "examples/hdf5_classification/data/test.txt"
source: "hdf5_classification/data/test.txt"
batch_size: 10
}
}
Expand Down

0 comments on commit 2917b4a

Please sign in to comment.