Module: tfl.kronecker_factored_lattice_layer
Stay organized with collections
Save and categorize content based on your preferences.
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
: Initializes bias depending on output_min and output_max.
class KFLRandomMonotonicInitializer
: Initializes a tfl.layers.KroneckerFactoredLattice
as random monotonic.
class KroneckerFactoredLatticeConstraints
: Constraints for tfl.layers.KroneckerFactoredLattice
layer.
class ScaleConstraints
: Constraints for tfl.layers.KroneckerFactoredLattice
scale.
class ScaleInitializer
: Initializes scale depending on output_min and output_max.
Functions
create_kernel_initializer(...)
: Returns a kernel Keras initializer object from its id.
create_scale_initializer(...)
: Returns a scale Keras initializer object from its id.
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
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-02 UTC.
[null,null,["Last updated 2024-08-02 UTC."],[],[],null,["# Module: tfl.kronecker_factored_lattice_layer\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/lattice/blob/v2.1.1/tensorflow_lattice/python/kronecker_factored_lattice_layer.py) |\n\nKronecker-Factored Lattice layer with monotonicity constraints.\n\nKeras implementation of tensorflow Kronecker-Factored Lattice layer. This layer\ntakes one or more d-dimensional input(s) and combines them using a\nKronecker-Factored Lattice function, satisfying monotonicity constraints if\nspecified.\n\nClasses\n-------\n\n[`class BiasInitializer`](../tfl/kronecker_factored_lattice_layer/BiasInitializer): Initializes bias depending on output_min and output_max.\n\n[`class KFLRandomMonotonicInitializer`](../tfl/kronecker_factored_lattice_layer/KFLRandomMonotonicInitializer): Initializes a [`tfl.layers.KroneckerFactoredLattice`](../tfl/layers/KroneckerFactoredLattice) as random monotonic.\n\n[`class KroneckerFactoredLatticeConstraints`](../tfl/kronecker_factored_lattice_layer/KroneckerFactoredLatticeConstraints): Constraints for [`tfl.layers.KroneckerFactoredLattice`](../tfl/layers/KroneckerFactoredLattice) layer.\n\n[`class ScaleConstraints`](../tfl/kronecker_factored_lattice_layer/ScaleConstraints): Constraints for [`tfl.layers.KroneckerFactoredLattice`](../tfl/layers/KroneckerFactoredLattice) scale.\n\n[`class ScaleInitializer`](../tfl/kronecker_factored_lattice_layer/ScaleInitializer): Initializes scale depending on output_min and output_max.\n\nFunctions\n---------\n\n[`create_kernel_initializer(...)`](../tfl/kronecker_factored_lattice_layer/create_kernel_initializer): Returns a kernel Keras initializer object from its id.\n\n[`create_scale_initializer(...)`](../tfl/kronecker_factored_lattice_layer/create_scale_initializer): Returns a scale Keras initializer object from its id.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Other Members ------------- ||\n|--------------------|---------------------------------------|\n| DIMS_NAME | `'dims'` |\n| KFL_BIAS_NAME | `'kronecker_factored_lattice_bias'` |\n| KFL_KERNEL_NAME | `'kronecker_factored_lattice_kernel'` |\n| KFL_SCALE_NAME | `'kronecker_factored_lattice_scale'` |\n| LATTICE_SIZES_NAME | `'lattice_sizes'` |\n| NUM_TERMS_NAME | `'num_terms'` |\n| UNITS_NAME | `'units'` |\n| absolute_import | Instance of `__future__._Feature` |\n| division | Instance of `__future__._Feature` |\n| print_function | Instance of `__future__._Feature` |\n\n\u003cbr /\u003e"]]