tfl.lattice_lib.verify_hyperparameters
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
Verifies that all given hyperparameters are consistent.
tfl.lattice_lib.verify_hyperparameters(
    lattice_sizes,
    units=None,
    weights_shape=None,
    input_shape=None,
    monotonicities=None,
    unimodalities=None,
    edgeworth_trusts=None,
    trapezoid_trusts=None,
    monotonic_dominances=None,
    range_dominances=None,
    joint_monotonicities=None,
    joint_unimodalities=None,
    output_min=None,
    output_max=None,
    regularization_amount=None,
    regularization_info='',
    interpolation='hypercube'
)
This function does not inspect weights themselves. Only their shape. Use
assert_constraints() to assert actual weights against constraints.
See tfl.layers.Lattice class level comment for detailed description of
arguments.
| Args | 
|---|
| lattice_sizes | Lattice sizes to check againts. | 
| units | Units hyperparameter of Latticelayer. | 
| weights_shape | Shape of tensor which represents Latticelayer weights. | 
| input_shape | Shape of layer input. Useful only if unitsis set. | 
| monotonicities | Monotonicities hyperparameter of Latticelayer. | 
| unimodalities | Unimodalities hyperparameter of Latticelayer. | 
| edgeworth_trusts | Edgeworth_trusts hyperparameter of Latticelayer. | 
| trapezoid_trusts | Trapezoid_trusts hyperparameter of Latticelayer. | 
| monotonic_dominances | Monotonic dominances hyperparameter of Latticelayer. | 
| range_dominances | Range dominances hyperparameter of Latticelayer. | 
| joint_monotonicities | Joint monotonicities hyperparameter of Latticelayer. | 
| joint_unimodalities | Joint unimodalities hyperparameter of Latticelayer. | 
| output_min | Minimum output of Latticelayer. | 
| output_max | Maximum output of Latticelayer. | 
| regularization_amount | Regularization amount for regularizers. | 
| regularization_info | String which describes regularization_amount. | 
| interpolation | One of 'simplex' or 'hypercube' interpolation. | 
| Raises | 
|---|
| ValueError | If something is inconsistent. | 
  
  
 
  
    
    
      
       
    
    
  
  
  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."],[],[]]