Skip to content

Instantly share code, notes, and snippets.

View Shirataki2's full-sized avatar
🏠
Working from home

Tomoya Ishii Shirataki2

🏠
Working from home
  • Keio University
View GitHub Profile
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.colors import ListedColormap
def plot_decision_regions(X, y, classifier, title=None, test_idx=None, resolution=0.02):
markers = ('s', 'x', 'o', '^', 'v')
colors = ('red', 'blue', 'lightgreen', 'gray', 'cyan')
cmap = ListedColormap(colors[:len(np.unique(y))])
x1_min, x1_max = X[:, 0].min() - 1, X[:, 0].max()+1
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define DESC(class, type) class<type> *, vector<class<type> *>, greater<class<type> *>
using namespace std;
static const int nil = (1 << 31);
static const int inf = (1 << 30);
class UnionFind {
@Shirataki2
Shirataki2 / VariationalMixtureGaussian.ipynb
Created August 31, 2018 15:17
PRML/notes/VariationalMixtureGaussian.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Shirataki2
Shirataki2 / SelfAttentionGAN-torch.ipynb
Created August 27, 2018 08:27
SelfAttentionGAN-torch.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Shirataki2
Shirataki2 / RVM.ipynb
Last active August 15, 2018 17:10
PRML/notes/RVM.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Shirataki2
Shirataki2 / Logistic.ipynb
Created August 10, 2018 14:11
Logistic.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Shirataki2
Shirataki2 / SpectralNormDCGAN-Torch.ipynb
Created August 10, 2018 14:06
SpectralNormDCGAN-Torch.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Shirataki2
Shirataki2 / Optimizer.ipynb
Created August 10, 2018 14:01
Optimizer.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Shirataki2
Shirataki2 / Markov-Chain.ipynb
Created August 10, 2018 13:57
Markov-Chain.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Shirataki2
Shirataki2 / GaussianProcess.ipynb
Created August 10, 2018 13:14
PRML/notes/GaussianProcess.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.