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

Make tests #13

Open
mhtess opened this issue Jun 6, 2016 · 6 comments
Open

Make tests #13

mhtess opened this issue Jun 6, 2016 · 6 comments

Comments

@mhtess
Copy link
Owner

mhtess commented Jun 6, 2016

No description provided.

@mhtess
Copy link
Owner Author

mhtess commented Jun 14, 2016

We need to test for each of the webppl() arguments.
Each of the inference algorithms (rejection, mcmc, enumerate, incrementalMH,...) should probably be tested with the inference_opts argument. Here is a model we can use as a template

model <- '
var k = 5
var n = 10

var model = function() {
   var p = uniform( {a:0, b:1} )
   factor(Binomial( {p : p, n: n }).score(k))
   return {p: p}
}
Infer({method:"rejection", samples:1000}, model)
'

webppl(model)

Then

webppl(model, 
inference_opts = list(method = rejection, samples = 1000), 
model_var = "model")

Then

var k = data.k
var n = data.n
...

webppl(model, data = list(k=5, n = 10), data_var = data)

and so on.

mhtess pushed a commit that referenced this issue Jun 15, 2016
@hawkrobe
Copy link
Collaborator

hawkrobe commented Feb 9, 2017

@mhtess What other tests still need to be written?

@mhtess
Copy link
Owner Author

mhtess commented Feb 9, 2017

Some ideas (not sure if they're necessary and/or feasible)

  • other functions that ship with rwebppl (get_samples, install_webppl(), install_webppl_package(), link_webppl() if that will still exist)
  • multiple chains
  • program_file argument

@hawkrobe
Copy link
Collaborator

hawkrobe commented Feb 15, 2017

Now that we have install_webppl(), we might want to build in some tests that check backwards compatibility with old versions of webppl to a certain extent (e.g. at least through 0.8.0 or whatever it was when we first started using rwebppl)

@mhtess
Copy link
Owner Author

mhtess commented Jun 2, 2017

Add test for precision in data passing, a la #57

@mhtess
Copy link
Owner Author

mhtess commented Jun 28, 2018

updated list of tests to make

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