tensorflow / tensorflow/probability

monte_carlo.expectation with samples from multiple multidimensional random variables

Open
#633 5 comments 0 reactions 1 assignee View on GitHub

@jvdillon is already working on this.

Since Nov 14, 2019.

question
Dominant language
Jupyter Notebook
Stars
4.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Is there a way to implement a tfp.monte_carlo.expectation passing N samples for multiple random variables with different dimensions?
E.g.

tfp.monte_carlo.expectation( f=lambda s: ...,
                                 samples = samples,
                                 ...)

where samples are comprised from two tensors with shapes (N, 2) and (N,2,2) ? Is that possible by defining samples as a list of N tuples of tensors constructed on slices of the two tensors along their first dimension?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.