|View source on GitHub|
Combiner for the Discretization preprocessing layer.
Compat aliases for migration
See Migration guide for more details.
tf.keras.layers.experimental.preprocessing.Discretization.DiscretizingCombiner( epsilon, num_bins )
This class encapsulates the computations for finding the quantile boundaries of a set of data in a stable and numerically correct way. Its associated accumulator is a namedtuple('summaries'), representing summarizations of the data used to generate boundaries.
||The desired number of buckets.|
compute( values, accumulator=None )
Compute a step in this computation, returning a new accumulator.
deserialize( encoded_accumulator )
Deserialize an accumulator received from 'serialize()'.
extract( accumulator )
Convert an accumulator into a dict of output values.
merge( accumulators )
Merge several accumulators to a single accumulator.
restore( output )
Create an accumulator based on 'output'.
serialize( accumulator )
Serialize an accumulator for a remote call.