codecamp

TensorFlow 具有观察值的 StochasticTensor

tf.contrib.bayesflow.stochastic_tensor.ObservedStochasticTensor


tf.contrib.bayesflow.stochastic_tensor.ObservedStochasticTensor 类

定义在:tensorflow/contrib/bayesflow/python/ops/stochastic_tensor_impl.py

具有观察值的 StochasticTensor.

属性


  • distribution
  • dtype
  • graph
  • name
  • value_type

方法


__init__

__init__ (
dist ,
value ,
name = None
)

构造一个 ObservedStochasticTensor.

ObservedStochasticTensor 由分发区支持, 并使用提供的值, 而不是使用当前值类型从分布中绘制值.所提供的值参数必须经过适当的形状来分配.

ARGS:

  • dist:一个分配实例.
  • value:包含观察值的张量.
  • name:这个 ObservedStochasticTensor 及其操作的名称.

注意:

  • TypeError:如果区不是一个分配的实例.
  • ValueError:如果值与分配不兼容.

entropy

entropy( name = 'entropy' )

loss

loss (
final_loss ,
name = None
)

mean

mean ( name = 'mean' )

value

value ( name = 'value' )
TensorFlow 随机张量值类型的MeanValue类
TensorFlow绘制样本
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

TensorFlow 函数介绍

TensorFlow 函数模块:tf

TensorFlow的image模块

TensorFlow使用之tf.io

TensorFlow使用之tf.keras

TensorFlow函数教程:tf.keras.applications

TensorFlow函数教程:tf.keras.backend

TensorFlow使用之tf.metrics

TensorFlow使用之tf.nn

TensorFlow使用之tf.python_io

TensorFlow 功能函数

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }