Skip to content

Instantly share code, notes, and snippets.

Avatar

szdr szdr

View GitHub Profile
View oblique
#!/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',
View NNExample.py
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):
@szdr
szdr / central_limit.ipynb
Created Jun 12, 2016
中心極限定理の実験
View central_limit.ipynb
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 Jul 8, 2016
カラーバー付き散布図
View color_scatter.py
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 / sampling.ipynb
Last active Jul 22, 2016
ランダムサンプリングの計測
View sampling.ipynb
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 Nov 24, 2016
カーネル法の導入
View introduction_of_kernel.ipynb
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 Jan 3, 2017
built-in sum vs numpy.sum
View sum_test.ipynb
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 Feb 23, 2017
正定値性を満たすように変換して精度が変わるかの確認
View positive_definite_kernel.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View PressureLinearRegression.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@szdr
szdr / PearsonCorrelationAnalysis.ipynb
Created Apr 1, 2017
ピアソンの積率相関係数
View PearsonCorrelationAnalysis.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.