Skip to content

Instantly share code, notes, and snippets.

View jbruck's full-sized avatar

Jonathan jbruck

  • Sydney, Australia
View GitHub Profile
View advi_minibatch.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
gabrieleangeletti /
Last active July 27, 2021 14:32
Restricted Boltzmann Machine implementation in TensorFlow, before and after code refactoring. Blog post:
import tensorflow as tf
import numpy as np
import os
import zconfig
import utils
class RBM(object):
hussius /
Last active June 28, 2019 17:12
Toy example of single-layer autoencoder in TensorFlow
import tensorflow as tf
import numpy as np
import math
#import pandas as pd
#import sys
input = np.array([[2.0, 1.0, 1.0, 2.0],
[-2.0, 1.0, -1.0, 2.0],
[0.0, 1.0, 0.0, 2.0],
[0.0, -1.0, 0.0, -2.0],
jgeewax /
Created June 16, 2012 19:57
webapp2_extras auth example (copy/paste)
# -*- coding: utf-8 -*-
A real simple app for using webapp2 with auth and session.
It just covers the basics. Creating a user, login, logout and a decorator for protecting certain handlers.
Set at secret_key in webapp2 config:
eykd / .gitignore
Created January 19, 2012 04:37
Full stack BDD testing with Behave+Mechanize+Django
View .gitignore
sixtenbe /
Last active February 24, 2024 23:45 — forked from endolith/peakdet.m
Peak detection in Python
# Copyright (C) 2016 Sixten Bergman
# License WTFPL
# This program is free software. It comes without any warranty, to the extent
# permitted by applicable law.
# You can redistribute it and/or modify it under the terms of the Do What The
# Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See