# Module: tfl.kronecker_factored_lattice_layer

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/lattice/blob/v2.1.1/tensorflow_lattice/python/kronecker_factored_lattice_layer.py) |

Kronecker-Factored Lattice layer with monotonicity constraints.

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

## Classes

[`class BiasInitializer`](https://www.tensorflow.org/lattice/api_docs/python/tfl/kronecker_factored_lattice_layer/BiasInitializer): Initializes bias depending on output_min and output_max.

[`class KFLRandomMonotonicInitializer`](https://www.tensorflow.org/lattice/api_docs/python/tfl/kronecker_factored_lattice_layer/KFLRandomMonotonicInitializer): Initializes a [`tfl.layers.KroneckerFactoredLattice`](https://www.tensorflow.org/lattice/api_docs/python/tfl/layers/KroneckerFactoredLattice) as random monotonic.

[`class KroneckerFactoredLatticeConstraints`](https://www.tensorflow.org/lattice/api_docs/python/tfl/kronecker_factored_lattice_layer/KroneckerFactoredLatticeConstraints): Constraints for [`tfl.layers.KroneckerFactoredLattice`](https://www.tensorflow.org/lattice/api_docs/python/tfl/layers/KroneckerFactoredLattice) layer.

[`class ScaleConstraints`](https://www.tensorflow.org/lattice/api_docs/python/tfl/kronecker_factored_lattice_layer/ScaleConstraints): Constraints for [`tfl.layers.KroneckerFactoredLattice`](https://www.tensorflow.org/lattice/api_docs/python/tfl/layers/KroneckerFactoredLattice) scale.

[`class ScaleInitializer`](https://www.tensorflow.org/lattice/api_docs/python/tfl/kronecker_factored_lattice_layer/ScaleInitializer): Initializes scale depending on output_min and output_max.

## Functions

[`create_kernel_initializer(...)`](https://www.tensorflow.org/lattice/api_docs/python/tfl/kronecker_factored_lattice_layer/create_kernel_initializer): Returns a kernel Keras initializer object from its id.

[`create_scale_initializer(...)`](https://www.tensorflow.org/lattice/api_docs/python/tfl/kronecker_factored_lattice_layer/create_scale_initializer): Returns a scale Keras initializer object from its id.

<br />

<br />

<br />

| ## Other Members ||
|---|---|
| DIMS_NAME | `'dims'` |
| KFL_BIAS_NAME | `'kronecker_factored_lattice_bias'` |
| KFL_KERNEL_NAME | `'kronecker_factored_lattice_kernel'` |
| KFL_SCALE_NAME | `'kronecker_factored_lattice_scale'` |
| LATTICE_SIZES_NAME | `'lattice_sizes'` |
| NUM_TERMS_NAME | `'num_terms'` |
| UNITS_NAME | `'units'` |
| absolute_import | Instance of `__future__._Feature` |
| division | Instance of `__future__._Feature` |
| print_function | Instance of `__future__._Feature` |

<br />