View skip_thoughts_word2vec.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
import chainer | |
from chainer import cuda | |
import chainer.links as L | |
import chainer.functions as F | |
from chainer import optimizers | |
from chainer import serializers | |
from chainer.functions.activation import sigmoid |
View bayse_fitting_sample_1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.mlab as mlab | |
I = 100 | |
data = np.random.normal(0, 2, I) | |
y = np.ones(I) | |
plt.hold(False) | |
plt.plot(data, y, "o") |
View iris_tensorflow.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
import numpy as np | |
import pandas as pd | |
import math | |
# Data sets | |
IRIS_TRAINING = "iris_training.csv" | |
IRIS_TEST = "iris_test.csv" | |
IRIS_DATA_SIZE = 4 | |
CLASS_SIZE = 3 |
View tenforflow_rnn.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import tensorflow as tf | |
import reader | |
import time | |
class PTBModel: | |
@property | |
def optimizer(self): | |
return self._optimizer |
View cnn.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
import reader | |
from datetime import datetime | |
import os.path | |
import time | |
import numpy as np | |
# Tensorflow の cifar10 サンプルの書き換え | |
# 学習率を徐々に下げたり、評価時の重みは移動平均を使ったりしているがそれはやっていない |
View viz_filter.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from scipy.ndimage import convolve | |
import tensorflow as tf | |
from tensorflow import pywrap_tensorflow | |
from PIL import Image | |
from matplotlib import pyplot as plt | |
plt.axis('off') | |
img = Image.open('009_0001.jpg') | |
plt.imshow(img) |
View spiralnn.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.