tensorflow / tensorflow/probability

Entropy is not implemented: Multinomial

Open
#429 8 comments 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

Hi,

System information

  • TensorFlow version: 2.0.0-dev20190529
  • TensorFlow probability version: 0.7.0-dev20190529

Current behavior
I tried running the entropy() call as stated in the https://www.tensorflow.org/probability/api_docs/python/tfp/distributions/Multinomial#entropy but I am getting a NotImplementedError

Expected behavior
I haven't checked the code but I assume since this was in the tfp api_docs the entropy for multinomial is implemented and is a bug, otherwise, if it is not implemented, we should fix the docs

Code to reproduce the issue
coin = tfd.Multinomial(total_count=60., probs=[1/6.]*6).entropy()

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

Run the provided Python reproduction for tfd.Multinomial(total_count=60., probs=[1/6.]*6).entropy() and compare it with the linked Multinomial entropy API documentation. Inspect the Multinomial entropy entry point and determine whether the documented operation should work; done means the call no longer raises NotImplementedError or the documentation accurately reflects its support.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.