tensorflow::ops::Bucketize
#include <math_ops.h>Suddivide l'input in categorie in base ai "confini".
Riepilogo
Ad esempio, se gli input sono boundaries = [0, 10, 100] input = [[-5, 10000] [150, 10] [5, 100]]
quindi l'output sarà output = [[0, 3] [3, 2] [1, 3]]
Argomentazioni:
- ambito: un oggetto Scope
- Input: qualsiasi forma di tensore contenente dati di tipo int o float.
- limiti: un elenco ordinato di numeri in virgola mobile fornisce il limite dei bucket.
Resi:
-
Output: Stessa forma di 'input', ogni valore di input sostituito con l'indice del bucket.
(numpy) Equivalente a np.digitize.
Costruttori e distruttori | |
|---|---|
Bucketize (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const gtl::ArraySlice< float > & boundaries) |
attributi pubblici | |
|---|---|
operation | |
output | |
Funzioni pubbliche | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
attributi pubblici
operazione
Operation operation
produzione
::tensorflow::Output output
Funzioni pubbliche
Bucketize
Bucketize( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const gtl::ArraySlice< float > & boundaries )
nodo
::tensorflow::Node * node() const
operatore::tensorflow::Input
operator::tensorflow::Input() const
operatore::tensoreflusso::output
operator::tensorflow::Output() const