xとWのshapeが様々なパターンのときの、a = np.dot(x, W) の結果のaのshapeを観察すると以下のようになっている。
| x.shape | W.shape | a.shape |
|---|---|---|
| (D,) | (D,) | scalar |
| (D,) | (D, 1) | (1,) |
| (D,) | (D, K) | (K,) |
| (N, D) | (D, K) | (N, K) |
| (T, N, D) | (D, K) | (T, N, K) |
| // 以下のFirefox用アドオンにタグ選択パネルを付加するuserChrome.jsスクリプトです | |
| // Hatebu IncSearch, livedoor clip IncSearch, del.icio.us IncSearch, Google Bookmarks IncSearch | |
| (function(){ | |
| const LIVEDOOR_URL = 'chrome://livedoorclip_incsearch/content/view.html'; | |
| const LIVEDOOR_DIR = 'livedoorclip_incsearch'; | |
| const HATEBU_URL = 'chrome://hatebu_incsearch/content/view.html'; | |
| const HATEBU_DIR = 'hatebu_incsearch'; | |
| const DELICIOUS_URL = 'chrome://delicious_incsearch/content/view.html'; |
| // ==UserScript== | |
| // @name LDR - More about Recently Added Feeds | |
| // @namespace http://profile.livedoor.com/ronekko/ | |
| // @description Livedoor Readerで「○○の新着フィード」のフィードにより詳しい情報を追加する | |
| // @include http://reader.livedoor.com/reader/ | |
| // @include http://reader.livedoor.com/subscribe/* | |
| // @version 20141229 | |
| // ==/UserScript== | |
| //20120512: Greasemonkey 0.9.19におけるwindow.setTimeoutの仕様変更に対処 | |
| //20141210: "Live Dwango Readerに登録"に変更になったことへの対処とか |
| // ==UserScript== | |
| // @name LDR - Expand Folders in Rate View Mode | |
| // @namespace http://profile.livedoor.com/ronekko/ | |
| // @description Livedoor Readerで起動/リロード時にフォルダを自動的に開く(レート表示モードのときのみ) | |
| // @include http://reader.livedoor.com/reader/ | |
| // @version 20150102 | |
| // @grant GM_getValue | |
| // @grant GM_setValue | |
| // @grant unsafeWindow | |
| // ==/UserScript== |
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Mon Jun 15 12:59:56 2015 | |
| @author: sakurai | |
| """ | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from sklearn import preprocessing |
前提: インストール先をC:\SPTKとする。
SPTK-3.8.tar.gz)をダウンロード、任意の場所に展開し、ソースコードのフォルダを開く(例: C:\SPTK-3.8)。Makefile.makの1行目を編集し、C:\SPTK\bin を C:\SPTK 変更する(\binを削除する)。あるいは、任意のパスを指定すると、そのフォルダにインストールされる。x86 Native Tools コマンドプロンプト を管理者権限で起動し、C:\SPTK-3.8 に移動する。x64版ではコンパイルできなかった。unistd.h が無いため、どこかから拾ってきて C:\SPTK-3.8\include\unistd.h を作成する。例えば、Win7 64bit, MSVS2013なら このリンク先からコピペする のでもコンパイルできた。nmake /f Makefile.mak| import subprocess | |
| subprocess.Popen(['proc.bat'], creationflags=subprocess.CREATE_NEW_CONSOLE) | |
| print "Launched a process on new console" |
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Thu Jun 25 23:08:22 2015 | |
| @author: ryuhei | |
| """ | |
| import numpy as np | |
| import matplotlib.pyplot as plt |
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Mon Aug 10 14:40:04 2015 | |
| @author: ryuhei | |
| """ | |
| import numpy as np | |
| from basic_distributions import ( | |
| ProbabilityDistribution, Multinomial, Gaussian, Poisson |
| // ==UserScript== | |
| // @name Faviconize Google (nested icons) | |
| // @namespace http://userscripts.ru/js/faviconize-google/ | |
| // @description Adds favicons to each link offered by Google search results. | |
| // @include https://www.google.*/search?* | |
| // @include https://encrypted.google.*/search?* | |
| // @include https://www.google.*/webhp* | |
| // @include https://www.google.*/#* | |
| // @include https://groups.google.*/groups/search?* | |
| // @copyright 2009+, Nikita Vasilyev (http://userscripts.org/scripts/show/58177) |