Skip to content

Instantly share code, notes, and snippets.

@ktnyt
ktnyt / chainer_xor
Created June 10, 2015 08:14
Minimum Chainer implementation of 3-Layer Perceptron for solving XOR
#!/usr/bin/env python
import numpy as np
from chainer import cuda, Function, FunctionSet, gradient_check, Variable, optimizers
import chainer.functions as F
x_train = np.array([
[[0., 0.]],
[[0., 1.]],
[[1., 0.]],
[[1., 1.]]
@remram44
remram44 / ipython-script.py
Created July 22, 2014 22:00
ipython-script.py
#!C:\Python2.7\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==2.1.0','console_scripts','ipython'
__requires__ = 'ipython==2.1.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('ipython==2.1.0', 'console_scripts', 'ipython')()
)
@jiffyclub
jiffyclub / game_of_life.ipynb
Created September 24, 2012 21:15
Conway's Game of Life in an IPython Notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.