mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Clarify meaning of rate parameter in Gamma distribution (#134847)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/134847 Approved by: https://github.com/fritzo
This commit is contained in:
parent
7eb66173e2
commit
090b778b8a
|
|
@ -29,8 +29,8 @@ class Gamma(ExponentialFamily):
|
||||||
Args:
|
Args:
|
||||||
concentration (float or Tensor): shape parameter of the distribution
|
concentration (float or Tensor): shape parameter of the distribution
|
||||||
(often referred to as alpha)
|
(often referred to as alpha)
|
||||||
rate (float or Tensor): rate = 1 / scale of the distribution
|
rate (float or Tensor): rate parameter of the distribution
|
||||||
(often referred to as beta)
|
(often referred to as beta), rate = 1 / scale
|
||||||
"""
|
"""
|
||||||
arg_constraints = {
|
arg_constraints = {
|
||||||
"concentration": constraints.positive,
|
"concentration": constraints.positive,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user