tensorflow / tensorflow/probability

Feature request: Different activation functions for different hidden layers in tfp.bijectors.AutoregressiveNetwork

Open
#1,522 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I would like to propose the following enhancement. In tfp.bijectors.AutoregressiveNetwork (https://www.tensorflow.org/probability/api_docs/python/tfp/bijectors/AutoregressiveNetwork) there does not seem to be a way to specify different activations for different hidden layers. Specifically, hidden_units allows for the specification of a network with multiple hidden layers. E.g., [10, 10] specifies two hidden layers with 10 units each. activation though does not take a list of activations. Instead, it takes a single activation function, which it applies to all hidden layers. It would be useful to be able to specify different activations for different hidden layers.

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

Start with the tfp.bijectors.AutoregressiveNetwork API and its handling of hidden_units and activation. Trace the implementation and existing tests, then verify that a separate activation can be selected for each hidden layer while preserving the current single-activation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
tensorflow
Domain
machine-learning
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.