2018-01-01から1年間の記事一覧
デコレータを使ってpython関数のエイリアスを作る def deco(f): return f() @deco def func(): return print func("hello") 何かキツネにつままれた感じ
Kerasの勉強していたらfunctionalAPIということで次のような記述に出くわした。 from keras.layers import Input, Dense from keras.models import Model # This returns a tensor inputs = Input(shape=(784,)) # a layer instance is callable on a tensor…
中学生の頃NHK特集で「シルクロード」という番組を見て以来、憧れ続けていた中国西域への入り口、敦煌に出かけた。午前10時に関空を出て、人民でごった返す北京首都机场を経由し、都合9時間ほどかかった。中国人民というのはもっとゆったりとした時間…