Skip to content

Instantly share code, notes, and snippets.

View xiangze's full-sized avatar

xiangze xiangze

View GitHub Profile
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xiangze
xiangze / pymc_hier.py
Created January 13, 2015 15:05
PyMC samples
# -*- coding: utf-8 -*-
import pymc as pm
import numpy as np
import pandas as pd
import theano.tensor as T
N=4
Y=pd.read_csv("http://hosho.ees.hokudai.ac.jp/~kubo/stat/iwanamibook/fig/hbm/data7a.csv")
@xiangze
xiangze / Readme.md
Last active August 29, 2015 14:13
Kanmusu co-occurrence with Niconico snap-shot search API
@xiangze
xiangze / kancolle_NPMI.py
Last active August 29, 2015 14:11
with Niconico snap-shot search API. Refer to http://sucrose.hatenablog.com/entry/2014/12/01/234549
# -*- coding: utf-8 -*-
#http://wikiwiki.jp/kancolle/?%B4%CF%C1%A5
names = u"""
長門
陸奥
伊勢
日向
雪風
赤城
@xiangze
xiangze / japan_patent_monthly.csv
Last active August 29, 2015 14:11
Japanese monthly patent application refer to http://www.jpo.go.jp/shiryou/toukei/syutugan_toukei_sokuho.htm (Japanese)
2010 8 25981
2010 9 32346
2010 10 25436
2010 11 27240
2010 12 31417
2011 1 23517
2011 2 27860
2011 3 42234
2011 4 25677
2011 5 24329
@xiangze
xiangze / NIPSscraping.py
Created December 15, 2014 17:14
title & authers of NIPS
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 16 00:16:31 2014
@author: xiangze
"""
import glob
from BeautifulSoup import BeautifulSoup