Monad-Bayes
ヒストグラム図の生成とかできる
code:hs
-- convert the stream to a list, taking only the first 100 steps
toList :: Monad m => P.Producer a m () -> m a toList prod = P.toListM (prod >-> P.take 100)
trueVectors <- sampleIOfixed $ toList prior
plot
(zip
(fmap (\v -> (v V.! 0, v V.! 1)) $ trueVectors)
(replicate 100 (T.pack "Latent")))
https://gyazo.com/f41e8556f39c64cef65d1703b8ca2e68