tf.keras.layers.experimental.preprocessing.Discretization.DiscretizingCombiner

Combiner for the Discretization preprocessing layer.

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.

epsilon Error tolerance.
num_bins The desired number of buckets.

Methods

compute

View source

Compute a step in this computation, returning a new accumulator.

deserialize

View source

Deserialize an accumulator received from 'serialize()'.

extract

View source

Convert an accumulator into a dict of output values.

merge

View source

Merge several accumulators to a single accumulator.

restore

View source

Create an accumulator based on 'output'.

serialize

View source

Serialize an accumulator for a remote call.