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
| # coding: utf-8 | |
| """ | |
| Q学習-最良経路を学習するスクリプト書いた (powered by Python) | |
| http://d.hatena.ne.jp/Kshi_Kshi/20111227/1324993576 | |
| Greedy法:学習結果をGreedy法で行動選択 | |
| 11:00- | |
| """ |
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
| # -*- coding:utf-8 -+- | |
| """ | |
| Q-Learning | |
| 強化学習で迷路を探索する | |
| Pythonで迷路探索の学習コード。しかしPygameが必要。 | |
| http://qiita.com/hogefugabar/items/74bed2851a84e978b61c | |
| PySideで動かす。 | |
| """ |
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
| # -*- coding:utf-8 -+- | |
| """ | |
| action.py | |
| """ | |
| import const | |
| class Action: | |
| def __init__(self, direction, possibility): |
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
| #! encoding:utf-8 | |
| """ | |
| gui_fileListWidget.py | |
| Description: | |
| ドラッグアンドドロップでファイルリストを表示するウィジェット | |
| 本当のデータはmodelが格納している。 | |
| Delegeteはリストのindex毎にModeからデータを読み出している。 | |
| Example: |
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
| #! coding:utf-8 | |
| """ | |
| QListViewを使って、ファイルをリストする | |
| PySideでリストをカスタマイズするぞ! ~基礎編「model/viewアーキテクチャ」~ | |
| http://www.dfx.co.jp/dftalk/?p=14388 | |
| PySideでリストをカスタマイズするぞ! ~応用編「delegate」~ | |
| http://www.dfx.co.jp/dftalk/?p=16745 |
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
| /*fisig_stylesheet_a1.css*/ | |
| /******* QWidget ********/ | |
| QWidget | |
| { | |
| color: #b1b1b1; | |
| background-color:#3a3a3a; | |
| } |
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
| #! coding:utf-8 | |
| # app_main.py | |
| import os | |
| import sys | |
| from PySide import QtGui, QtUiTools | |
| from qcss13 import qcss13 | |
| ## Import UI File | |
| UI_FILE_NAME = '/qss13.ui' |
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 matplotlib as mpl | |
| ### MATPLOTLIBRC FORMAT | |
| # This is a sample matplotlib configuration file - you can find a copy | |
| # of it on your system in | |
| # site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it | |
| # there, please note that it will be overwritten in your next install. | |
| # If you want to keep a permanent local copy that will not be | |
| # overwritten, place it in HOME/.matplotlib/matplotlibrc (unix/linux |
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
| #! coding:utf-8 | |
| # ****************************************** # | |
| # | |
| # adboost.py | |
| # | |
| # ****************************************** # | |
| from __future__ import division | |
| from numpy import * |
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 __future__ import division | |
| from numpy import * | |
| class AdaBoost: | |
| def __init__(self, training_set): | |
| self.training_set = training_set | |
| self.N = len(self.training_set) | |
| self.weights = ones(self.N)/self.N | |
| self.RULES = [] |