Skip to content

Instantly share code, notes, and snippets.

@jameslyons
jameslyons / iris_caffe_solver.prototxt
Created August 20, 2015 07:53
caffe solver for iris dataset
# The train/test net protocol buffer definition
net: "./iris_caffe_network.prototxt"
# test_iter specifies how many forward passes the test should carry out.
# In the case of iris, we have test batch size 10 (specified in iris_network.prototxt)
# and 5 test iterations covering the full 50 test vectors.
test_iter: 5
# Carry out testing every 500 training iterations.
test_interval: 100
# The base learning rate, momentum and the weight decay of the network.
base_lr: 0.001
@jameslyons
jameslyons / create_currennt_HDF5.m
Created October 23, 2015 05:00
create HDF5 file for currennt
close all;
clear all;
% load the protein dataset, this is a array of struct that has fields .pssm and .ss
% which are our features and labels respectively. pssm is a L by 20 array of features.
% ss is a L by 1 array of characters C, E, H or X which are our 4 classes.
% the actual variable that appears is called 'combined'
load protein_dataset;
% this is the name of the HDF5 file we will be writing to
fname = ['proteins_train_currennt.nc'];