Skip to content

Commit

Permalink
Merge pull request #799 from null-a/error-guiding-marginal
Browse files Browse the repository at this point in the history
Gracefully handle failure to auto guide Marginals.
  • Loading branch information
stuhlmueller committed Mar 21, 2017
2 parents 36b4472 + 18c4ef0 commit 6d3b353
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/guide.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ function spec(targetDist) {
return discreteSpec(targetDist);
} else if (targetDist instanceof dists.RandomInteger ||
targetDist instanceof dists.Binomial ||
targetDist instanceof dists.MultivariateGaussian) {
targetDist instanceof dists.MultivariateGaussian ||
targetDist instanceof dists.Marginal ||
targetDist instanceof dists.SampleBasedMarginal) {
throwAutoGuideError(targetDist);
} else {
return defaultSpec(targetDist);
Expand Down

0 comments on commit 6d3b353

Please sign in to comment.