tensorflow:: אופס:: 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]

טיעונים:

  • scope: אובייקט Scope
  • ערכים: Tensor נומרי .
  • value_range: Shape [2] Tensor באותו dtype כמו values . ערכים <= value_range[0] ימופו להיסט[0], ערכים >= value_range[1] ימופו להיסט[-1].
  • nbins: Scalar 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:: ops:: HistogramFixedWidth:: Attrs

קובעי תכונות אופציונליים עבור HistogramFixedWidth .

תכונות ציבוריות

מבצע

Operation operation

הַחוּצָה

::tensorflow::Output out

תפקידים ציבוריים

HistogramFixedWidth

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

HistogramFixedWidth

 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 

פונקציות סטטיות ציבוריות

Dtype

Attrs Dtype(
  DataType x
)