Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

Module: tfl.lattice_layer

View source on GitHub

Lattice layer with monotonicity, unimodality, trust and bound constraints.

Keras implementation of tensorflow lattice layer. This layer takes one or more d-dimensional input(s) and combines them using a lattice function, satisfying monotonicity, unimodality, trust and bound constraints if specified.


class LaplacianRegularizer: Laplacian regularizer for tfl.layers.Lattice layer.

class LatticeConstraints: Constraints for tfl.layers.Lattice layer.

class LinearInitializer: Initializes a tfl.layers.Lattice as linear function.

class RandomMonotonicInitializer: Initializes a tfl.layers.Lattice as uniform random monotonic function.

class TorsionRegularizer: Torsion regularizer for tfl.layers.Lattice layer.

Other Members

  • LATTICE_KERNEL_NAME = 'lattice_kernel'
  • LATTICE_SIZES_NAME = 'lattice_sizes'