tensorflow:: ops:: HistogramFixedWidth

#include <math_ops.h>

أعد رسمًا بيانيًا للقيم.

ملخص

بناءً على values الموتر، تُعيد هذه العملية رسمًا بيانيًا من الرتبة 1 يحسب عدد values التي تقع ضمن كل خانة. الخانات متساوية العرض ويتم تحديدها بواسطة الوسيطين value_range و 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]

الحجج:

  • النطاق: كائن النطاق
  • القيم: Tensor عددي.
  • value_range: Tensor ذو شكل [2] من نفس dtype مثل values . سيتم تعيين القيم <= value_range[0] إلى hist[0]، وسيتم تعيين القيم >= value_range[1] إلى hist[-1].
  • nbins: int32 Tensor . عدد خانات الرسم البياني.

المرتجعات:

  • Output : Tensor أحادي البعد يحتوي على رسم بياني لتوزيع القيم.

البناة والمدمرون

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)

السمات العامة

operation
out

الوظائف العامة

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

الدوال الثابتة العامة

Dtype (DataType x)

الهياكل

tensorflow:: ops:: HistogramFixedWidth:: Attrs

مُعدِّلات السمات الاختيارية لـ HistogramFixedWidth .

السمات العامة

عملية

Operation operation

خارج

::tensorflow::Output out

الوظائف العامة

رسم بياني ذو عرض ثابت

 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
)

العقدة

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

الدوال الثابتة العامة

نوع البيانات

Attrs Dtype(
  DataType x
)