2016-10-10から1日間の記事一覧
エラー内容 paper.hatenadiary.jp を行っている時に Installing https://luarocks.org/nn-1.0.4-1.src.rock... Using https://luarocks.org/nn-1.0.4-1.src.rock... switching to 'build' mode env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/usr/loca…
1. lualocks の install brew install lua 2. torch のインストール git clone https://github.com/torch/distro.git ~/torch --recursive cd ~/torch; bash install-deps; ./install.sh source ~/.zshrc 3. よく使うものを用意 luarocks install nn luarock…
やること X = np.array([[1, 2, 3],[4,100, 6]]) から100のindexである (1, 1)を取得したい。 解決法 np.argmaxを使う np.argmax(X) >> 5 と 行列を一次元にreshapeした時のindexが返ってくる。 np.whereを使う zip(np.where(X==X.max())[0], np.where(X==X.…
やりたいこと qiita.com にあるようなモデルを作成して分類問題を解く。 What is the difference between stacked LSTM's and multidimensional LSTM's? - Quora を参考にしつつ(してない...?)モデルを作成。 Wen, Tsung-Hsien, et al. "Semantically cond…
内容 python+kerasを使って、MNISTのような白黒画像を分類するCNNを構築。 パラメータを変更すればカラー画像なども対応可能、のはず。 コード # keras import numpy import pandas from keras.models import Sequential from keras.layers import Dense, Dr…
www.tablesgenerator.com 他にも多数あるけど、特に便利なところ。 markdownなどにも対応している。