tensorflow:: ops:: Bucketize
#include <math_ops.h>「境界」に基づいて「入力」をバケットに分類します。
まとめ
例えば、入力が boundaries = [0, 10, 100] の場合、入力は [[-5, 10000] [150, 10] [5, 100]] となります。
すると出力は output = [[0, 3] [3, 2] [1, 3]] となります。
議論:
返品:
-
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