tensorflow:: ops:: היסטוגרמהרוחב קבוע
#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. values <= value_range[0] ימופו ל- hist[0], values >= value_range[1] ימופו ל- hist[-1]. - nbins:
int32 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
אופרטור::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const
פונקציות סטטיות ציבוריות
סוג D
Attrs Dtype( DataType x )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2026-11-05 (שעון UTC).
[null,null,["עדכון אחרון: 2026-11-05 (שעון UTC)."],[],[]]