tensorflow / probability

Probabilistic reasoning and statistical analysis in TensorFlow
https://www.tensorflow.org/probability/
Apache License 2.0
4.23k stars 1.09k forks source link

Importing tensorflow_probability.distributions #706

Open danijar opened 4 years ago

danijar commented 4 years ago

I usually first try this import that fails:

import tensorflow_probability.distributions as tfd

Then I try the second one that works

from tensorflow_probability import distributions as tfd

Is there a reason against including distributions in the parent package such that both imports work?

csuter commented 4 years ago

FWIW I love this suggestion. It's always bugged me as well, and I never thought through it enough to see this obvious-in-hindsight solution. I'd invite a PR, and otherwise will try to do this soon.

rinarakaki commented 3 years ago

Is there some reason why we cannot simply