tensorflow:: ops:: HistogramFixedWidth

#include <math_ops.h>

Devuelve el histograma de valores.

Resumen

Dados los values del tensor, esta operación devuelve un histograma de rango 1 que cuenta el número de entradas en values que caen en cada intervalo. Los intervalos tienen el mismo ancho y están determinados por los argumentos value_range y nbins .

# Bins will be:  (-inf, 1), [1, 2), [2, 3), [3, 4), [4, inf)
nbins = 5
value_range = [0.0, 5.0]
new_values = [-1.0, 0.0, 1.5, 2.0, 5.0, 15]

with tf.get_default_session() as sess:
  hist = tf.histogram_fixed_width(new_values, value_range, nbins=5)
  variables.global_variables_initializer().run()
  sess.run(hist) => [2, 1, 1, 0, 2]

Argumentos:

  • ámbito: Un objeto de ámbito
  • valores: Tensor numérico.
  • value_range: Forma [2] Tensor del mismo dtype que values . values ​​<= value_range[0] se asignará a hist[0], values ​​>= value_range[1] se asignará a hist[-1].
  • nbins: int32 Tensor . Número de intervalos del histograma.

Devoluciones:

  • Output : Un Tensor unidimensional que contiene un histograma de valores.

Constructores y destructores

HistogramFixedWidth (const :: tensorflow::Scope & scope, :: tensorflow::Input values, :: tensorflow::Input value_range, :: tensorflow::Input nbins)
HistogramFixedWidth (const :: tensorflow::Scope & scope, :: tensorflow::Input values, :: tensorflow::Input value_range, :: tensorflow::Input nbins, const HistogramFixedWidth::Attrs & attrs)

Atributos públicos

operation
out

Funciones públicas

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

funciones estáticas públicas

Dtype (DataType x)

Estructuras

tensorflow:: ops:: HistogramFixedWidth:: Attrs

Configuradores de atributos opcionales para HistogramFixedWidth .

Atributos públicos

operación

Operation operation

afuera

::tensorflow::Output out

Funciones públicas

Histograma de ancho fijo

 HistogramFixedWidth(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input values,
  ::tensorflow::Input value_range,
  ::tensorflow::Input nbins
)

Histograma de ancho fijo

 HistogramFixedWidth(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input values,
  ::tensorflow::Input value_range,
  ::tensorflow::Input nbins,
  const HistogramFixedWidth::Attrs & attrs
)

nodo

::tensorflow::Node * node() const 

operador::tensorflow::Input

 operator::tensorflow::Input() const 

operador::tensorflow::Salida

 operator::tensorflow::Output() const 

funciones estáticas públicas

Tipo D

Attrs Dtype(
  DataType x
)