Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laysakura/prml-python
PythonでPRMLの題材ゴニョゴニョしてニヨニヨする場
https://github.com/laysakura/prml-python
Last synced: 10 days ago
JSON representation
PythonでPRMLの題材ゴニョゴニョしてニヨニヨする場
- Host: GitHub
- URL: https://github.com/laysakura/prml-python
- Owner: laysakura
- Created: 2015-08-01T08:14:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-09T14:53:51.000Z (over 9 years ago)
- Last Synced: 2024-12-17T20:09:02.315Z (2 months ago)
- Language: Python
- Size: 1.47 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# prml-python

_ガウス分布のパラメータをリアルタイムで変更_
_二項分布の逐次学習_## 使い方
### 動作検証環境
| | |
|--------|--------------------|
| OS | Mac OS X Marverics |
| Python | Python 3.4.3 |### Pythonのインストール
[pyenvを使ってMacにPythonの環境を構築する](http://qiita.com/1000ch/items/93841f76ea52551b6a97) などを見てインストール。
```bash
$ python --version
```で所望のバージョンがインストールされていることの確認。
### 依存パッケージのインストール
```bash
$ pip install scipy # scipyは、setup.py に書くだけじゃうまくインストールできない。。
$ ./setup.py install
```### matplotlib の設定
[Python 3.3でmatplitlibとpylabを使おうとしたら...](http://qiita.com/katryo/items/918667f28301fdec89ba) を読み、 `~/.matplotlib/matplotlibrc` の `backend` を `TkAgg` に変更。
これをしないと、グラフが表示されなかった。### 動作検証
```bash
$ PYTHONPATH=prmlpy python prmlpy/plot/ch1_p24_normal_dist.py
```グラフが表示されればOK。
## 可視化サンプルの動かし方
```bash
$ PYTHONPATH=prmlpy python prmlpy/plot/foobar.py
```または
```bash
$ python -m prmlpy.plot.foobar
```立ち上がった画面でスライダーバーとか動かして遊ぶ。