tensorflow / tensorflow/probability
Piecewise distribution
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 4.4k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
How can I write a piecewise distribution?
I want a distribution that consists of 3 distributions, each defined on it's range:
{ Gamma(a-, b-)(-x), when x < 0
y = { 0, when x = 0
{ Gamma(a+, b+)(x), when x > 0
It looks like a mixture of a Deterministic and a two-piece distribution, similar to TwoPieceNormal or TwoPieceStudentT, but with 2 Gamma functions.
Is it possible to define a piecewise distribution similar way to defining a Mixture?
Or is is possible to build it by writing a transformation of some existing "TwoPiece" distribution?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked Deterministic, TwoPieceNormal, TwoPieceStudentT, Gamma, and Mixture documentation. Determine whether the requested three-part distribution can be represented by existing distribution or transformation APIs; done would be a clear supported approach or an identified need for a new distribution capability.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- tensorflow
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100