Skip to content

Instantly share code, notes, and snippets.

View apple2373's full-sized avatar

Satoshi Tsutsui apple2373

View GitHub Profile
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# this is a quick implementation of
# BUT! This is kind of dirty. Lots of hard coding. 
import numpy as np
import math
from chainer import cuda, Function, FunctionSet, gradient_check, Variable, optimizers
import chainer.functions as Fu