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

Support the Manipulation of PyMC4 Models #18

Open
brandonwillard opened this issue May 27, 2019 · 1 comment
Open

Support the Manipulation of PyMC4 Models #18

brandonwillard opened this issue May 27, 2019 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed important Features and issues that need to be addressed ASAP TensorFlow This issue involves the TensorFlow backend

Comments

@brandonwillard
Copy link
Contributor

After the introduction of TensorFlow backend support (i.e. #4 ), we can implement functions to convert to-and-from PyMC4 models.

@brandonwillard brandonwillard added enhancement New feature or request important Features and issues that need to be addressed ASAP help wanted Extra attention is needed labels May 27, 2019
@brandonwillard brandonwillard added the TensorFlow This issue involves the TensorFlow backend label Mar 12, 2020
@brandonwillard
Copy link
Contributor Author

brandonwillard commented Mar 13, 2020

FYI: This issue is more specifically about

  1. the ability to obtain a usable "sample-space" TensorFlow graph (i.e. one that represents all the relations between random variables/terms) from a PyMC4 model object, and then
  2. the ability to convert such a TensorFlow graph into a PyMC4 model object.

As of now, the only way to do 1. is to create the corresponding TFP objects and use the graph from .sample(). Requirement 2. isn't even remotely possible to do right now, because the output of .sample() only loosely corresponds to the TFP objects/classes from which it's generated, and, even after converting the TF sample-space graph to TFP objects, there isn't a clear way to construct a corresponding PyMC4 model.

Don't get me wrong, it's do-able, just a lot of painstaking 3-way patching between regularly updated/changing libraries.

@brandonwillard brandonwillard changed the title Support PyMC4 Models Support the Manipulation of PyMC4 Models Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed important Features and issues that need to be addressed ASAP TensorFlow This issue involves the TensorFlow backend
Projects
None yet
Development

No branches or pull requests

1 participant