tensorflow / tensorflow/probability

Provide seed to DenseReparameterization layer

Open
#115 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I use DenseReparameterization for the transition function of a simple state-space model. To sample posterior sequences, I need to auto-regressively apply the layer to its own output inside of a symbolic loop. However, the samples are not consistent because the layer uses a different weight matrix at each iteration of the loop. Is it possible or are there plans to pass the seed into layer(inputs, seed=0) in order to sample consistent sequences?

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.

Research direction

No files, tests, or entry points are identified in the issue. Start by locating DenseReparameterization and its sampling path, then determine how a supplied seed should behave inside a symbolic loop. Done means the layer accepts the requested seed and produces consistent autoregressive samples, with tests covering that behavior.

Written by the indexing model from the issue text.

Assessment

Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.