نشكرك على متابعة Google I / O. عرض جميع الجلسات عند الطلب مشاهدة عند الطلب

تينسورفلو :: العمليات :: رسم بياني ثابت

#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: الشكل [2] Tensor من نفس dtype كما values . القيم <= value_range [0] سيتم تعيينها للنسيج [0] ، القيم> = value_range [1] سيتم تعيينها إلى Hist [-1].
  • nbins: عددي int32 Tensor . عدد صناديق المدرج التكراري.

عائدات:

  • Output : Tensor 1-D يحمل رسم بياني للقيم.

البنائين والمدمرين

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 :: العمليات :: HistogramFixedWidth :: Attrs

محددات السمات الاختيارية لـ HistogramFixedWidth .

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

عملية

Operation operation

خارج

::tensorflow::Output out

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

رسم بياني ثابت

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

رسم بياني ثابت

07 مكة 980

العقدة

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

المشغل :: Tensorflow :: Output

 operator::tensorflow::Output() const 

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

نوع

09 فبراير 2350