tensorflow :: operaciones :: 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 los values que caen en cada contenedor. Los bins 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:
- alcance: un objeto de alcance
-  valores: Tensornumérico.
-  rango_valor: Forma [2] Tensordel mismo tipodtypeque losvalues. los valores <= value_range [0] se asignarán a hist [0], los valores> = value_range [1] se asignarán a hist [-1].
-  nbins: int32 Tensorescalarint32 Tensor. Número de contenedores de histograma.
Devoluciones:
| 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 publicas | |
|---|---|
| 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
fuera
::tensorflow::Output out
Funciones publicas
HistogramFixedWidth
HistogramFixedWidth( const ::tensorflow::Scope & scope, ::tensorflow::Input values, ::tensorflow::Input value_range, ::tensorflow::Input nbins )
HistogramFixedWidth
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 :: Entrada
operator::tensorflow::Input() const
operador :: tensorflow :: Salida
operator::tensorflow::Output() const
Funciones estáticas públicas
Dtype
Attrs Dtype( DataType x )