Skip to content

Instantly share code, notes, and snippets.

View fissoreg's full-sized avatar

Giancarlo Fissore fissoreg

View GitHub Profile
@fissoreg
fissoreg / mnist_relu.jl
Last active May 10, 2019 10:23
Noisy Rectified Linear Units (NReLU) for Boltzmann.jl
using Boltzmann
using MLDatasets.MNIST: testdata
using ImageView
include("relu.jl")
function plot_weights(W, imsize, padding=10)
h, w = imsize
n = size(W, 1)
rows = Int(floor(sqrt(n)))