2016-03-09から1日間の記事一覧

pandasでInfとnanをで埋める.

pandasでInfとnanを平均で埋める. In [416]: b Out[416]: a c 0 1.000000 3 1 2.000000 4 2 3.000000 NaN 3 inf 5 In [415]: b.replace(np.inf,np.nan).fillna(b.replace(np.inf,np.nan).mean()) Out[415]: a c 0 1 3 1 2 4 2 3 4 3 2 5

Rstanの導入

R

RのMCMCライブラリのRstanの導入 windows 8 64bit R x64 3.0.2 これに従う. https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started (1)基本の整備 バージョンにあったRtoolsのインストール (2)gccのパスをRtoolsのものにする(3)インスト…

Rstanの導入

R

RのMCMCライブラリのRstanの導入 windows 8 64bit R x64 3.0.2 これに従う. https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started (1)基本の整備 バージョンにあったRtoolsのインストール (2)gccのパスをRtoolsのものにする(3)インスト…