Last active
August 29, 2015 14:27
-
-
Save jameslyons/5715c7f3c39730dbf5a8 to your computer and use it in GitHub Desktop.
caffe network specification for single layer FF MLP on iris dataset.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "iris" | |
layer { | |
name: "data" | |
type: "HDF5Data" | |
top: "data" | |
top: "label" | |
include: { | |
phase: TRAIN | |
} | |
hdf5_data_param { | |
source: "./files/train_file_location.txt" | |
batch_size: 10 | |
} | |
} | |
layer { | |
name: "data" | |
type: "HDF5Data" | |
top: "data" | |
top: "label" | |
include: { | |
phase: TEST | |
} | |
hdf5_data_param { | |
source: "./files/test_file_location.txt" | |
batch_size: 10 | |
} | |
} | |
layer { | |
name: "ip1" | |
type: "InnerProduct" | |
bottom: "data" | |
top: "ip1" | |
inner_product_param { | |
num_output: 20 | |
weight_filler { | |
type: "xavier" | |
} | |
bias_filler { | |
type: "constant" | |
} | |
} | |
} | |
layer { | |
name: "relu1" | |
type: "ReLU" | |
bottom: "ip1" | |
top: "ip1" | |
} | |
layer { | |
name: "ip2" | |
type: "InnerProduct" | |
bottom: "ip1" | |
top: "ip2" | |
inner_product_param { | |
num_output: 3 | |
weight_filler { | |
type: "xavier" | |
} | |
bias_filler { | |
type: "constant" | |
} | |
} | |
} | |
layer { | |
name: "softmax" | |
type: "Softmax" | |
bottom: "ip2" | |
top: "smip2" | |
} | |
layer { | |
name: "loss" | |
type: "SoftmaxWithLoss" | |
bottom: "ip2" | |
bottom: "label" | |
top: "loss" | |
} | |
layer { | |
name: "accuracy" | |
type: "Accuracy" | |
bottom: "smip2" | |
bottom: "label" | |
top: "accuracy" | |
include { | |
phase: TEST | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment