Tensorflow :: ops :: HistogramFixedWidth
#include <math_ops.h>
Histogramm der Werte zurückgeben.
Zusammenfassung
In Anbetracht der Tensor values
, gibt diese Operation einen Rang 1 Histogramm die Anzahl der Einträge in Zählen values
, die in jeden Behälter fallen. Die Bins sind gleich breit und werden durch die Argumente value_range
und 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]
Argumente:
- scope: Ein Scope- Objekt
- Werte: Numerischer
Tensor
. - value_range: Shape [2]
Tensor
desselbendtype
wievalues
. Werte <= Wertbereich [0] werden auf hist [0] abgebildet, Werte> = Wertbereich [1] werden auf hist [-1] abgebildet. - nbins: Scalar
int32 Tensor
. Anzahl der Histogrammfächer.
Kehrt zurück:
Konstruktoren und Destruktoren | |
---|---|
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) |
Öffentliche Attribute | |
---|---|
operation | |
out |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche statische Funktionen | |
---|---|
Dtype (DataType x) |
Strukturen | |
---|---|
tensorflow :: ops :: HistogramFixedWidth :: Attrs | Optionale Attributsetzer für HistogramFixedWidth . |
Öffentliche Attribute
Operation
Operation operation
aus
::tensorflow::Output out
Öffentliche Funktionen
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 )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Öffentliche statische Funktionen
Dtype
Attrs Dtype( DataType x )