Skip to content

Instantly share code, notes, and snippets.

@yusuke0519
yusuke0519 / theanoでAutoencoder.ipynb
Created November 17, 2015 07:54
theano, autoencoder, python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yusuke0519
yusuke0519 / TheanoでCNN.ipynb
Created November 17, 2015 04:33
theano, CNN, python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yusuke0519
yusuke0519 / TheanoでMLP.ipynb
Created November 17, 2015 01:57
theano, MLP, python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yusuke0519
yusuke0519 / theanoでLogistic Regression.ipynb
Created November 16, 2015 09:45
theano, logistic regression
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yusuke0519
yusuke0519 / sampling.py
Created September 3, 2015 02:55
ランダムにサンプルを抽出する
import random
marks = ['club', 'diamond', 'heart', 'spade']
numbers = range(1, 14)
cards = [(m, n) for m in marks for n in numbers]
random.choice(cards) # => トランプのカードのいずれか
@yusuke0519
yusuke0519 / data2file.py
Created September 2, 2015 07:15
Pythonで現在時刻をstringで取得
from datetime import datetime
date_str = datetime.now().strftime('%Y-%m-%d-%H-%M'):w
@yusuke0519
yusuke0519 / dict_plus_dict.py
Created August 21, 2015 02:07
[python] dict + dict
from itertools import chain
dest = dict(chain.from_iterable(map(dict.items, list_of_dicts)))