備忘録的な

プログラミングや機械学習に関する備忘録

2014-01-01から1年間の記事一覧

PyPIへのパッケージのドキュメント登録

PyPIのDocumentation Hostingを利用して自作パッケージのマニュアル等を登録します. 登録したドキュメントは http://pythonhosted.org/<project_name>で見ることができます.登録の仕方は以下の通り. ドキュメントを用意する 今回はSphinxを利用してドキュメントを作成し</project_name>…

PyPIへのパッケージ登録

.pypircをホームディレクトリ(Win8ならC:\Users\Owner) ※パスワード直書きなので注意 [distutils] # this tells distutils what package indexes you can push to index-servers = pypi # the live PyPI pypitest # test PyPI [pypi] # authentication deta…

GitHubに関する参考サイト

Git

サルでもわかるGit入門 〜バージョン管理を使いこなそう〜 | どこでもプロジェクト管理バックログ git status git add . git commit -m "comment" git push -u <name> master チケット駆動開発 github上でissueを作成する トピックブランチを作成する git checkout</name>…

Pythonのパッケージ化に関する参考サイト

モジュールのインポート方法いろいろ — Python School 2.0.0 documentationGithubにPythonのライブラリをあげてpipでインストールする | junion blogtkamishima (Toshihiro Kamishima) · GitHub[Python] setuptools - SumiTomohikoの日記https://pypi.python…

scikit-learn 0.15.0

scikit-learnが0.15.0になってRandom Forestが速くなったと言っているので試してみました. Huge speed and memory improvements to random forests (and extra trees) that also benefit better from parallel computing ベンチマーク用のコードは以下 tota…

pandas備忘録

read_csv data = pd.io.parsers.read_csv('c:\test.csv', sep=',', header=None, na_values=['-'], dtype={0:'str', 1:'str', 2:'str', 3:'str'}) 文字列置換 data[0].replace('(\d{4})(\d{2})(\d{2})', '\\1-\\2-\\3', regex=True, inplace=True) groupby d…