Skip to content

Instantly share code, notes, and snippets.

View peace098beat's full-sized avatar

Tomoyuki Nohara peace098beat

View GitHub Profile
@peace098beat
peace098beat / paired_comparison.py
Created December 2, 2015 13:47
[一対比較評価] ver0.1たたき台を作成
#! coding:utf-8
"""
paired_comparison.py
一対比較評価
リーグ勝敗表を英語に訳すと league standing; game standing
順位表を英語に訳すと ranking table
組み合わせ表 pairing(対戦の)table of combination
(2015/12/02) たたき台を作成
@peace098beat
peace098beat / cepstrum_for_gwt.py
Created December 1, 2015 22:20
Liftering Script. Cepstrum for gwt spectrum.
#! coding:utf-8
"""
cepstrum_for_gwt
GWT配列からケプストラムを算出
Created by fifi (2015/12/02 6:17)
"""
__version__ = '0.1'
@peace098beat
peace098beat / gwt_cepstrum.py
Created November 30, 2015 09:24
[信号処理] gwt cepstrum
function [ Ceps_env, Ceps_det ] = Analys_Cepstrum( arg_GWT, arg_lifter )
% アルゴリズム
% http://jp.mathworks.com/help/signal/ref/rceps.html#bqrvf7e-1
% rceps は、参考文献 [2] のアルゴリズム 7.2 を実装したもので、以下の操作を行います。
% y = real(ifft(log(abs(fft(x)))));
% ケプストラム領域で適切なウィンドウ処理を適用すると、復元された最小位相信号が作成されます。
%
% w = [1;2*ones(n/2-1,1);ones(1-rem(n,2),1);zeros(n/2-1,1)];
% ym = real(ifft(exp(fft(w.*y))));
%
@peace098beat
peace098beat / pandas-signalprocessing.ipynb
Created November 27, 2015 08:36
[Pandas] 信号データの呼び出し
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peace098beat
peace098beat / Pandas-first-sandbox.ipynb
Created November 27, 2015 07:56
[Pandas] はじめてのPandas
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peace098beat
peace098beat / Pandas-object--trans.ipynb
Created November 27, 2015 07:55
[Pandas] はじめてのPandas 型変換方法一覧
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peace098beat
peace098beat / gwt_ver1.0.py
Last active November 24, 2015 08:30
[機械学習] オーディオデータの読み込み
# -*- coding: utf-8 -*-
"""GaborWavelet.py
ガボール変換を使ったウェーブレット変換
Version:
1.0 (copy)
Reference:
http://hp.vector.co.jp/authors/VA046927/gabor_wavelet/gabor_wavelet.html
@peace098beat
peace098beat / MultiLayerPerceptron.py
Created November 23, 2015 22:18
[機械学習] DQN 車のレース. GUI付き。 ver0.1
#! coding:utf-8
"""
MultiLayerPerceptron.py
## Description
多層パーセプトロンの高速化
http://aidiary.hatenablog.com/entry/20140201/1391218771
入力層 - 隠れ層 - 出力層の3層構造で固定(PRMLではこれを2層と呼んでいる)
隠れ層の活性化関数にはtanh関数またはsigmoid logistic関数が使える
@peace098beat
peace098beat / CircleRaceGUI3.py
Created November 20, 2015 05:20
[機械学習] 車のレース. GUI付き。
#! coding:utf-8
"""
CircleRace main.py
サークルレースゲーム
(2015/11/20) 4:40 ver0.3 センサグラフ追加
(2015/11/19) 21:50 ver0.2 センサ追加
(2015/11/19) 4:47 ver0.1作成
Created by 0160929 on 2015/11/19 7:28
@peace098beat
peace098beat / pyside-painter-skelton.py
Created November 19, 2015 23:39
[PySide] QPainterのスケルトンコード
#! coding:utf-8
"""
pyside-painter-skelton.py
pysideでグラフィックを描画するためのスケルトンコード
Created by 0160929 on 2015/11/19 7:28
"""
__version__ = '0.3'
import sys