用法
variance(
    name='variance'
)參數
- 
namePythonstr附加在此函數創建的操作名稱之前。
返回
- 
variance形狀與batch_shape + event_shape相同的浮點Tensor,即與self.mean()相同的形狀。
方差。
方差定義為,
Var = E[(X - E[X])**2]其中 X 是與此分布相關的隨機變量, E 表示期望值,而 Var.shape = batch_shape + event_shape 。
相關用法
- Python tf.compat.v1.distributions.Bernoulli.cross_entropy用法及代碼示例
- Python tf.compat.v1.distributions.Bernoulli.covariance用法及代碼示例
- Python tf.compat.v1.distributions.Bernoulli.survival_function用法及代碼示例
- Python tf.compat.v1.distributions.Bernoulli.kl_divergence用法及代碼示例
- Python tf.compat.v1.distributions.Bernoulli.log_survival_function用法及代碼示例
- Python tf.compat.v1.distributions.Bernoulli.log_cdf用法及代碼示例
- Python tf.compat.v1.distributions.Bernoulli.stddev用法及代碼示例
- Python tf.compat.v1.distributions.Bernoulli.cdf用法及代碼示例
- Python tf.compat.v1.distributions.Bernoulli.quantile用法及代碼示例
- Python tf.compat.v1.distributions.Beta.quantile用法及代碼示例
- Python tf.compat.v1.distributions.Beta.kl_divergence用法及代碼示例
- Python tf.compat.v1.distributions.Beta.log_cdf用法及代碼示例
- Python tf.compat.v1.distributions.Beta.covariance用法及代碼示例
- Python tf.compat.v1.distributions.Beta.cdf用法及代碼示例
- Python tf.compat.v1.distributions.Beta.log_survival_function用法及代碼示例
- Python tf.compat.v1.distributions.Beta用法及代碼示例
- Python tf.compat.v1.distributions.Beta.stddev用法及代碼示例
- Python tf.compat.v1.distributions.Beta.cross_entropy用法及代碼示例
- Python tf.compat.v1.distributions.Beta.survival_function用法及代碼示例
- Python tf.compat.v1.distributions.Beta.variance用法及代碼示例
注:本文由純淨天空篩選整理自tensorflow.org大神的英文原創作品 tf.compat.v1.distributions.Bernoulli.variance。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。
