tensorflow::ops::HistogramFixedWidth
#include <math_ops.h>Restituisce l'istogramma dei valori.
Riepilogo
Dati i values del tensore, questa operazione restituisce un istogramma di rango 1 che conta il numero di elementi nei values che rientrano in ogni intervallo. Gli intervalli hanno la stessa ampiezza e sono determinati dagli argomenti value_range e 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]
Argomentazioni:
- ambito: un oggetto Scope
- valori:
Tensornumerico. - value_range: Forma [2]
Tensordello stessodtypedivalues. values <= value_range[0] verrà mappato a hist[0], values >= value_range[1] verrà mappato a hist[-1]. - nbins:
int32 Tensor. Numero di bin dell'istogramma.
Resi:
Costruttori e distruttori | |
|---|---|
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) |
attributi pubblici | |
|---|---|
operation | |
out | |
Funzioni pubbliche | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Funzioni statiche pubbliche | |
|---|---|
Dtype (DataType x) | |
Strutture | |
|---|---|
| tensorflow::ops::HistogramFixedWidth::Attrs | Impostatori di attributi opzionali per HistogramFixedWidth . |
attributi pubblici
operazione
Operation operation
fuori
::tensorflow::Output out
Funzioni pubbliche
Istogramma a larghezza fissa
HistogramFixedWidth( const ::tensorflow::Scope & scope, ::tensorflow::Input values, ::tensorflow::Input value_range, ::tensorflow::Input nbins )
Istogramma a larghezza fissa
HistogramFixedWidth( const ::tensorflow::Scope & scope, ::tensorflow::Input values, ::tensorflow::Input value_range, ::tensorflow::Input nbins, const HistogramFixedWidth::Attrs & attrs )
nodo
::tensorflow::Node * node() const
operatore::tensorflow::Input
operator::tensorflow::Input() const
operatore::tensoreflusso::output
operator::tensorflow::Output() const
Funzioni statiche pubbliche
Tipo D
Attrs Dtype( DataType x )