This file contains hidden or 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 datetime | |
| import pickle | |
| import warnings | |
| import math | |
| from hmmlearn.hmm import GaussianHMM, GMMHMM | |
| from matplotlib import cm, pyplot as plt | |
| from matplotlib.dates import YearLocator, MonthLocator | |
| import numpy as np | |
| import pandas as pd | |
| import seaborn as sns |
This file contains hidden or 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
| %matplotlib inline | |
| import os | |
| import numpy as np | |
| import matplotlib as mpl | |
| import matplotlib.pyplot as plt | |
| import pandas as pd | |
| import glob | |
| from joblib import Memory | |
| from pandas_datareader import wb | |
| import datetime as dt |
This file contains hidden or 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
| # %matplotlib inline | |
| import numpy as np | |
| import pandas as pd | |
| import pandas.io as io | |
| import talib as ta | |
| import datetime as dt | |
| import math | |
| from minepy import MINE | |
| from pandas.io.data import DataReader | |
| import urllib |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import numpy as np | |
| import pandas as pd | |
| import datetime as dt | |
| from pandas.io.data import DataReader | |
| from joblib import Memory | |
| import matplotlib as mpl | |
| import matplotlib.pyplot as plt |
This file contains hidden or 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 numpy | |
| import six | |
| from chainer import cuda | |
| from chainer import function | |
| from chainer.utils import type_check | |
| def _extract_gates(x): | |
| r = x.reshape((x.shape[0], x.shape[1] / 3, 3) + x.shape[2:]) |
This file contains hidden or 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: http://danielhnyk.cz/predicting-sequences-vectors-keras-using-rnn-lstm/ | |
| and https://gist.github.com/hnykda/f1eca6cb0061cde701c2#file-keras-py | |
| See comments on the blog at danielhnyk.cz. """ | |
| from keras.models import Sequential | |
| from keras.layers.core import TimeDistributedDense, Dense, Activation, Dropout | |
| from keras.layers.recurrent import GRU, LSTM | |
| import numpy as np | |
| import datetime | |
| import matplotlib.pyplot as plt | |
| try: |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| This code is a Chainer example to train a multi-layer perceptron with diabetes dataset, | |
| based on the code by mottodora (https://gist.github.com/mottodora/a9c46754cf555a68edb7) | |
| """ | |
| import argparse | |
| import numpy as np |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # -*- coding:utf-8 -*- | |
| import os | |
| import sys | |
| import logging | |
| import codecs | |
| import MeCab | |
| import re | |
| import hashlib |
This file contains hidden or 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
| #!/usr/bin/python | |
| # this script have two functions: | |
| # | |
| # A: Gatherer | |
| # 1) gets all updated files, excluding the files under symlinks | |
| # 2) makes an archive file with a password, containing all updated files | |
| # 3) places it as a downloadable file on the docroot | |
| # | |
| # B: Updater | |
| # 1) download an archive file with a password, containing all updated file, from another server |
This file contains hidden or 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
| date,新規失業保険申請件数,ISM非製造業景況指数,消費者物価指数,ミシガン大消費者信頼感指数【速報値】,失業率,消費者物価指数【コア】,NY連銀製造業景気指数,建設許可件数,耐久財受注【除輸送用機器】,鉱工業生産,ミシガン大消費者信頼感指数【確報値】,フィラデルフィア連銀景況指数,生産者物価指数,中古住宅販売保留,小売売上高,中古住宅販売件数,耐久財受注,個人消費,生産者物価指数【コア】,雇用統計,ISM製造業景況指数,小売売上高【除自動車】,FOMC政策金利,貿易収支,四半期GDP,新築住宅販売件数,FOMC議事録,景気先行指数 | |
| 2008/02/01,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0 | |
| 2008/02/04,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | |
| 2008/02/05,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | |
| 2008/02/06,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | |
| 2008/02/07,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | |
| 2008/02/08,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | |
| 2008/02/11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | |
| 2008/02/12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 | |
| 2008/02/13,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0 |