posteriordb
posteriordb copied to clipboard
stan2tfp
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
Yes. This is very good!
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.
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