tensorflow / probability

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

Stochastic block model example/tutorial #71

Open dustinvtran opened 6 years ago

dustinvtran commented 6 years ago

See also https://github.com/blei-lab/edward/blob/master/examples/stochastic_block_model.py.

rlouf commented 6 years ago

I come from the network theory crowd and am keen to learn TFP (currently using PyMC3). Should this go in examples/jupyter_notebooks?

dustinvtran commented 6 years ago

Yeah, if you want to make it a notebook. Alternatively, examples/ if it's just a script similar to the Edward one.

rlouf commented 6 years ago

Ok, I'm on it!

rlouf commented 6 years ago

I'm at a roadblock: how is the probability mass function (PointMass in Edward) implement in tfp? I browsed the codebase (mostly generated_random_variables) but could not find it anywhere.

srvasude commented 6 years ago

Deterministic/VectorDeterministic should be the equivalent of PointMass (the former univariate, the latter multivariate).