tensorflow::ops::HistogramFixedWidth

#include <math_ops.h>

Değerlerin histogramını döndürün.

Özet

Verilen tensör values göre, bu işlem her bir bölmeye düşen values sayısını sayan 1. dereceden bir histogram döndürür. Bölmeler eşit genişliktedir ve value_range ve nbins argümanları tarafından belirlenir.

# 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]

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • Değerler: Sayısal Tensor .
  • değer aralığı: Şekil [2] values aynı dtype sahip Tensor . değerler <= değer aralığı[0] hist[0]'a, değerler >= değer aralığı[1] hist[-1]'e eşlenecektir.
  • nbins: Skalar int32 Tensor . Histogram bölmelerinin sayısı.

İadeler:

  • Output : Değerlerin histogramını içeren 1 boyutlu bir Tensor .

Yapıcılar ve Yıkıcılar

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)

Genel özellikler

operation
out

Kamusal işlevler

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

Herkese açık statik fonksiyonlar

Dtype (DataType x)

Yapılar

tensorflow::ops::HistogramFixedWidth::Attrs

HistogramFixedWidth için isteğe bağlı öznitelik ayarlayıcıları.

Genel özellikler

operasyon

Operation operation

dışarı

::tensorflow::Output out

Kamusal işlevler

HistogramSabitGenişlik

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

HistogramSabitGenişlik

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

düğüm

::tensorflow::Node * node() const 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

operatör::tensorflow::Çıktı

 operator::tensorflow::Output() const 

Herkese açık statik fonksiyonlar

Dtype

Attrs Dtype(
  DataType x
)