index 分布。
繼承自:Gamma
,Distribution
用法
tf.compat.v1.distributions.Exponential(
rate, validate_args=False, allow_nan_stats=True, name='Exponential'
)
參數
-
rate
浮點張量,相當於1 / mean
。必須隻包含正值。 -
validate_args
Pythonbool
,默認False
。盡管可能會降低運行時性能,但檢查True
分發參數的有效性時。當False
無效輸入可能會默默呈現不正確的輸出。 -
allow_nan_stats
Pythonbool
,默認True
。當True
時,統計信息(例如,均值、眾數、方差)使用值“NaN
”來指示結果未定義。當False
時,如果一個或多個統計數據的批處理成員未定義,則會引發異常。 -
name
Pythonstr
名稱以此類創建的 Ops 為前綴。
屬性
-
allow_nan_stats
Pythonbool
說明未定義統計信息時的行為。統計數據在有意義時返回 +/- 無窮大。例如,柯西分布的方差是無窮大的。但是,有時統計數據是未定義的,例如,如果分布的 pdf 在分布的支持範圍內沒有達到最大值,則模式是未定義的。如果均值未定義,則根據定義,方差未定義。例如: df = 1 的 Student's T 的平均值是未定義的(沒有明確的方式說它是 + 或 - 無窮大),因此方差 = E[(X - mean)**2] 也是未定義的。
-
batch_shape
來自單個事件索引的單個樣本的形狀作為TensorShape
.可能部分定義或未知。
批次維度是該分布的獨立、不同參數化的索引。
-
concentration
濃度參數。 -
dtype
Tensor
的DType
由此Distribution
處理。 -
event_shape
單個批次的單個樣品的形狀作為TensorShape
.可能部分定義或未知。
-
name
此Distribution
創建的所有操作前的名稱。 -
parameters
用於實例化此Distribution
的參數字典。 -
rate
速率參數。 -
reparameterization_type
說明如何重新參數化分布中的樣本。目前這是靜態實例
distributions.FULLY_REPARAMETERIZED
或distributions.NOT_REPARAMETERIZED
之一。 -
validate_args
Pythonbool
表示啟用了可能昂貴的檢查。
index 分布由事件rate
參數參數化。
數學細節
概率密度函數 (pdf) 是,
pdf(x; lambda, x > 0) = exp(-lambda x) / Z
Z = 1 / lambda
其中rate = lambda
和Z
是歸一化常數。
index 分布是伽瑪分布的一個特例,即
Exponential(rate) = Gamma(concentration=1., rate)
index 分布使用 rate
參數或 "inverse scale",可以直觀地理解為,
X ~ Exponential(rate=1)
Y = X / rate
相關用法
- Python tf.compat.v1.distributions.Exponential.variance用法及代碼示例
- Python tf.compat.v1.distributions.Exponential.cdf用法及代碼示例
- Python tf.compat.v1.distributions.Exponential.log_cdf用法及代碼示例
- Python tf.compat.v1.distributions.Exponential.cross_entropy用法及代碼示例
- Python tf.compat.v1.distributions.Exponential.kl_divergence用法及代碼示例
- Python tf.compat.v1.distributions.Exponential.quantile用法及代碼示例
- Python tf.compat.v1.distributions.Exponential.survival_function用法及代碼示例
- Python tf.compat.v1.distributions.Exponential.log_survival_function用法及代碼示例
- Python tf.compat.v1.distributions.Exponential.stddev用法及代碼示例
- Python tf.compat.v1.distributions.Exponential.covariance用法及代碼示例
- Python tf.compat.v1.distributions.Multinomial.stddev用法及代碼示例
- Python tf.compat.v1.distributions.Bernoulli.cross_entropy用法及代碼示例
- Python tf.compat.v1.distributions.Bernoulli.covariance用法及代碼示例
- Python tf.compat.v1.distributions.Normal.log_survival_function用法及代碼示例
- Python tf.compat.v1.distributions.Laplace.stddev用法及代碼示例
- Python tf.compat.v1.distributions.Multinomial.quantile用法及代碼示例
- Python tf.compat.v1.distributions.Uniform.log_survival_function用法及代碼示例
- Python tf.compat.v1.distributions.Gamma.cdf用法及代碼示例
- Python tf.compat.v1.distributions.Normal.log_cdf用法及代碼示例
- Python tf.compat.v1.distributions.Gamma.log_cdf用法及代碼示例
注:本文由純淨天空篩選整理自tensorflow.org大神的英文原創作品 tf.compat.v1.distributions.Exponential。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。