probmods / ppaml2016

Web book for the PPAML summer school 2016
4 stars 0 forks source link

editor bug with variational / Optimize #2

Closed dritchie closed 8 years ago

dritchie commented 8 years ago

If you run this code in a code box

var fitGaussian = function() {
  var mu = scalarParam(0, 1);
  var sigma = Math.exp(scalarParam(0, 1));
  factor(NaN);
};

Optimize(fitGaussian, {steps: 1000});

you'll get an error (as intended). Now, if you try to run any code in the same code box after this, you'll get the error

Address prefix mismatch.

Seems like there's something lingering around in the global coroutine from the previous execution that shouldn't be.

null-a commented 8 years ago

Seems like there's something lingering around in the global coroutine from the previous execution that shouldn't be.

Yeah, I think this is caused by the same problem as #1. I'll take a look.

null-a commented 8 years ago

Closed by probmods/webppl#565.