tensorflow:: ops:: Bucketize

#include <math_ops.h>

يقوم بتصنيف "المدخلات" بناءً على "الحدود".

ملخص

على سبيل المثال، إذا كانت المدخلات هي الحدود = [0، 10، 100] المدخلات = [[-5، 10000] [150، 10] [5، 100]]

عندها ستكون النتيجة هي: output = [[0, 3] [3, 2] [1, 3]]

الحجج:

  • النطاق: كائن النطاق
  • المدخلات: أي شكل من أشكال الموتر يحتوي على نوع int أو float.
  • الحدود: قائمة مرتبة من الأرقام العشرية تحدد حدود المجموعات.

المرتجعات:

  • Output : نفس شكل "المدخل"، مع استبدال كل قيمة من قيم المدخل بفهرس الحاوية.

(numpy) مكافئ لـ np.digitize.

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

Bucketize (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const gtl::ArraySlice< float > & boundaries)

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

operation
output

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

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

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

عملية

Operation operation

المخرجات

::tensorflow::Output output

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

باكتيز

 Bucketize(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const gtl::ArraySlice< float > & boundaries
)

العقدة

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const