Skip to content

Instantly share code, notes, and snippets.

@ilkerkesen
ilkerkesen / caffe.log
Last active October 4, 2016 19:21
Caffe Inconsistent Loss
$ sh leakage.sh
WARNING: Logging before InitGoogleLogging() is written to STDERR
I1004 19:15:11.682617 8069 net.cpp:58] Initializing net from parameters:
name: "Housing"
state {
phase: TRAIN
level: 0
}
layer {
type: "MemoryData"
@ilkerkesen
ilkerkesen / mnist1d.py
Last active September 27, 2016 17:24
Caffe 1-dimension input with LMDB
import os
import gzip
import numpy as np
import lmdb
import caffe
import six.moves.cPickle as pickle
def load_data(dataset):
data_dir, data_file = os.path.split(dataset)
@ilkerkesen
ilkerkesen / train.jl
Created July 12, 2016 12:06
MLP - MNIST
using MNIST
sigmoid(z) = 1 ./ (1 + exp(-z))
# load MNIST data
println("Loading MNIST dataset...")
X_train, y_train = traindata()
X_test, y_test = testdata()
y_train, y_test = y_train', y_test'
# mean normalization
@ilkerkesen
ilkerkesen / .gitignore_global
Created January 18, 2015 00:18
Global .gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
*.pyc
a.out