Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inference progress interface #8

Open
null-a opened this issue Feb 4, 2016 · 1 comment
Open

Inference progress interface #8

null-a opened this issue Feb 4, 2016 · 1 comment

Comments

@null-a
Copy link
Member

null-a commented Feb 4, 2016

I've added callbacks to webppl's MCMC method will allow us to experiment with an inference progress interface at some point.

As a proof of concept, I made an example of using these callbacks to drive a progress bar in node.

The interface for this is very similar to the one we discussed earlier.

@longouyang
Copy link
Member

Proof of concept working in 0593391

Demo at http://web.stanford.edu/~louyang/wp-editor/compiled/index.html , run the MCMC callback example [1]

There's some under the hood improvements to make (maybe use React or somehow throttle DOM updates), so I'll keep the issue open.

Also, should the default behavior in the browser be to have a progress bar? This seems desirable but might be a little tricky to implement.

[1] reproducing the code here in case i change that demo site:

var model = function() { return gaussian(0,1) };
MCMC(model, { samples: 1e5, callbacks: [wpEditor.MCMCProgress()]});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants