تدفق التوتر:: العمليات:: الرسم البيانيFixedWidth

#include <math_ops.h>

إرجاع الرسم البياني للقيم.

ملخص

بالنظر إلى values الموتر، تقوم هذه العملية بإرجاع رسم بياني من المرتبة الأولى يحسب عدد الإدخالات في 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: الشكل [2] Tensor من نفس dtype مثل values . سيتم تعيين القيم <= value_range[0] إلى السجل [0]، وسيتم تعيين القيم >= value_range[1] إلى السجل [-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

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

الرسم البيانيFixedWidth

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

الرسم البيانيFixedWidth

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

العقدة

::tensorflow::Node * node() const 

المشغل::tensorflow::الإدخال

 operator::tensorflow::Input() const 

المشغل::tensorflow::الإخراج

 operator::tensorflow::Output() const 

وظائف ثابتة العامة

نوع D

Attrs Dtype(
  DataType x
)