Skip to content

Instantly share code, notes, and snippets.

View graphific's full-sized avatar

Roelof Pieters graphific

View GitHub Profile
""" Simple Logistic Regression on Mnist, incurs a time penalty
Epoch: 0001 cost= 29.860479714
time this epoch= 1.749361
Epoch: 0002 cost= 22.108508758
time this epoch= 1.873362
(...)
Epoch: 0024 cost= 18.365951549
time this epoch= 2.787942
Epoch: 0025 cost= 18.230793715
time this epoch= 2.748816
@graphific
graphific / 3_install_deeplearning_libs.sh
Last active August 20, 2023 13:31
Installation script for Deep Learning Libraries on Ubuntu 14.04
#!/usr/bin/env bash
# Installation script for Deep Learning Libraries on Ubuntu 14.04, by Roelof Pieters (@graphific)
# BSD License
orig_executor="$(whoami)"
if [ "$(whoami)" == "root" ]; then
echo "running as root, please run as user you want to have stuff installed as"
exit 1
fi
###################################
@graphific
graphific / 2_test_gpu_cuda.sh
Last active September 19, 2017 05:01
Test script for checking if Cuda and Drivers correctly installed on Ubuntu 14.04
#!/usr/bin/env bash
# Test script for checking if Cuda and Drivers correctly installed on Ubuntu 14.04, by Roelof Pieters (@graphific)
# BSD License
if [ "$(whoami)" == "root" ]; then
echo "running as root, please run as user you want to have stuff installed as"
exit 1
fi
###################################
# Ubuntu 14.04 Install script for:
@graphific
graphific / 1_install_cuda.sh
Last active December 29, 2017 09:39
Installation script for Cuda and drivers on Ubuntu 14.04
#!/usr/bin/env bash
# Installation script for Cuda and drivers on Ubuntu 14.04, by Roelof Pieters (@graphific)
# BSD License
if [ "$(whoami)" == "root" ]; then
echo "running as root, please run as user you want to have stuff installed as"
exit 1
fi
###################################
# Ubuntu 14.04 Install script for:
# - Nvidia graphic drivers for Titan X: 352
VGG_ILSVRC_19_layers_train_val.prototxt
name: "VGG_ILSVRC_19_layers"
layers {
name: "data"
type: DATA
include {
phase: TRAIN
}
transform_param {
crop_size: 224