stan-dev / posteriordb

Database with posteriors of interest for Bayesian inference
176 stars 36 forks source link

stan2tfp #136

Open avehtari opened 4 years ago

avehtari commented 4 years ago

stan2tfp could be useful for testing Tensorflow based models with posteriordb https://discourse.mc-stan.org/t/request-for-code-review-stan2tfp-python-wrapper/12771 https://github.com/adamhaber/stan2tfp

No hurry, but added the issue that we could at some point add a case example

MansMeg commented 4 years ago

Yes. This is very good!

eerolinna commented 4 years ago

Is the idea that we would use stan2tfp to convert Stan models to tfp models and then add them to posteriordb? (I mean the collection of posteriors and models and datasets here, not the client libraries)

Or is it that we would have an API in the client libraries that invokes stan2ftp dynamically? So essentially generating the tfp code on the fly.

I guess the first case is more likely as https://discourse.mc-stan.org/t/request-for-code-review-stan2tfp-python-wrapper/12771/11 says that not all Stan models can be converted to tfp models.

avehtari commented 4 years ago

The idea is that someone else could use stan2tfp to use Stan models from posteriordb. We might make a minimal example with just one model, but at the moment we don't want to start testing which models in posteriordb would work