- pandas にプルリクエスト (PR) を送りたい
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 squarify | |
import matplotlib.pyplot as plt | |
from numpy.random import rand | |
fig, axes = plt.subplots(2, 3, figsize=(14, 8)) | |
plt.subplots_adjust(top=0.95, bottom=0.05, left=0.05, right=0.95, hspace=0.35) | |
sq = 8 | |
def random_colors(n): |
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
from pandas import Series, DataFrame | |
import numpy as np | |
from numpy.random import randn, rand | |
import pandas.tools.plotting as plotting | |
import matplotlib.pyplot as plt | |
s = Series(randn(6), index=range(6)) |
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 -*- | |
""" | |
This code uses "MLP" class defined in: | |
http://deeplearning.net/tutorial/mlp.html#tips-and-tricks-for-training-mlps | |
""" | |
import os | |
import sys | |
import time |
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
library(dplyr) | |
library(tidyr) | |
library(ggplot2) | |
library(gridExtra) | |
library(animation) | |
plot_dtw_matrix <- function(ts_a, ts_b, i, j, cost, dist) { | |
.plot_matrix <- function(m, title, low, high) { | |
d <- dplyr::tbl_df(data.frame(m)) |
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 -*- | |
from __future__ import unicode_literals | |
from collections import defaultdict | |
import numpy as np | |
np.random.seed(1) | |
import networkx as nx | |
class MRF(object): | |
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
library(survival) | |
library(ggplot2) | |
library(scales) | |
d.survfit <- survival::survfit(survival::Surv(time, status) ~ sex, | |
data = lung) | |
fortify.survfit <- function(survfit.data) { | |
data.frame(time = survfit.data$time, |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 string | |
from pandas import DataFrame | |
import numpy as np | |
from numpy.random import randn | |
import pandas.tools.plotting as plotting | |
from matplotlib.pylab import close |
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
#!/bin/bash | |
# -------------------------------------------------------------------------------------- | |
# Preparation | |
# To execute this script, please follow: | |
# wget https://gist.github.com/sinhrks/ba9876e7aa2a18a601f8/raw/environment_setup.sh | |
# chmod +x environment_setup.sh | |
# ./environment_setup.sh | |
# -------------------------------------------------------------------------------------- |
NewerOlder