statsim / app

StatSim. Bayesian inference and statistical simulations in the browser
https://statsim.com/app
21 stars 2 forks source link

New Update breaks models #34

Open Centipede5 opened 1 year ago

Centipede5 commented 1 year ago

I tried using the messages example (https://statsim.com/app/?m=messages), and while it seems to run correctly I cannot expand the observer, I'm not sure if the models have not been updated or if this is an issue with the app

zemlyansky commented 1 year ago

@Centipede5, thanks for catching this. Yes, it's the issue with the latest update. I will fix it soon

zemlyansky commented 1 year ago

@Centipede5 the latest release includes implementation of the observer block in both blocks and flow-based views. Should be available on https://statsim.com/app/

The original messages example included some custom expressions, as (tau > _j) ? lambda1 : lambda2 or 1 / listMean(data). Those are not really obvious. So I made a flow-based version of the model: https://statsim.com/app/?m=messages-slice. Rather than relying on _j in the observer block, the messages vector (msg) is split on two vectors (msg_1, msg_2) based on tau and observed using lambda_1 and lambda_2 in corresponding observer blocks.

Centipede5 commented 1 year ago

@Centipede5 the latest release includes implementation of the observer block in both blocks and flow-based views. Should be available on https://statsim.com/app/

The original messages example included some custom expressions, as (tau > _j) ? lambda1 : lambda2 or 1 / listMean(data). Those are not really obvious. So I made a flow-based version of the model: https://statsim.com/app/?m=messages-slice. Rather than relying on _j in the observer block, the messages vector (msg) is split on two vectors (msg_1, msg_2) based on tau and observed using lambda_1 and lambda_2 in corresponding observer blocks.

https://statsim.com/app/?m=messages-slice Is not loading for me

zemlyansky commented 1 year ago

@Centipede5, have you tried loading it on mobile? What browser? I made the flow-based view default for that model and it doesn't work well on small screens