tensoreflusso:: ops:: Istogramma Larghezza fissa

#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 voci nei values che rientrano in ogni contenitore. I contenitori hanno la stessa larghezza 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]

Argomenti:

  • scope: un oggetto Scope
  • valori: Tensor Numerico .
  • value_range: Forma [2] Tensor dello stesso dtype dei values . i valori <= value_range[0] verranno mappati su hist[0], i valori >= value_range[1] verranno mappati su hist[-1].
  • nbins: int32 Tensor . Numero di contenitori dell'istogramma.

Ritorna:

  • Output : un Tensor 1-D contenente un istogramma di valori.

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 pubbliche statiche

Dtype (DataType x)

Strutture

tensorflow:: ops:: HistogramFixedWidth:: Attrs

Setter di attributi facoltativi per HistogramFixedWidth .

Attributi pubblici

operazione

Operation operation

fuori

::tensorflow::Output out

Funzioni pubbliche

Istogramma Larghezza fissa

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

Istogramma 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::tensorflow::Output

 operator::tensorflow::Output() const 

Funzioni pubbliche statiche

Tipo D

Attrs Dtype(
  DataType x
)