Skip to content

Instantly share code, notes, and snippets.

View szdr's full-sized avatar

szdr szdr

  • YJ
  • Tokyo
View GitHub Profile
@szdr
szdr / PearsonCorrelationAnalysis.ipynb
Created April 1, 2017 04:13
ピアソンの積率相関係数
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@szdr
szdr / positive_definite_kernel.ipynb
Created February 23, 2017 14:28
正定値性を満たすように変換して精度が変わるかの確認
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@szdr
szdr / sum_test.ipynb
Created January 3, 2017 10:19
built-in sum vs numpy.sum
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@szdr
szdr / introduction_of_kernel.ipynb
Last active November 24, 2016 02:05
カーネル法の導入
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@szdr
szdr / sampling.ipynb
Last active July 22, 2016 16:27
ランダムサンプリングの計測
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@szdr
szdr / color_scatter.py
Created July 8, 2016 15:02
カラーバー付き散布図
import numpy as np
import matplotlib.cm as cm
import matplotlib.pyplot as plt
if __name__ == '__main__':
N = 100
X = np.random.rand(N, 2)
y = np.random.rand(N) * 2 - 1
sc = plt.scatter(X[:, 0], X[:, 1], vmin=-1, vmax=1, c=y, cmap=cm.seismic)
plt.colorbar(sc)
@szdr
szdr / central_limit.ipynb
Created June 12, 2016 06:02
中心極限定理の実験
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numpy as np
from chainer import Function, Variable, optimizers
from chainer import Chain
import chainer.functions as F
import chainer.links as L
class NN(Chain):
def __init__(self):
#!/usr/bin/python
import random
strategies = [
'(Organic) machinery',
'A line has two sides',
'A very small object Its center',
'Abandon desire',
'Abandon normal instructions',
'Abandon normal instruments',