model_configs
pytorch_lattice.model_configs
Model configurations classes for PyTorch Calibrated Models.
LatticeConfig
dataclass
Bases: _BaseModelConfig
Configuration for a calibrated lattice model.
Attributes:
Name | Type | Description |
---|---|---|
All |
|
|
kernel_init |
LatticeInit
|
The |
interpolation |
Interpolation
|
The |
Source code in pytorch_lattice/model_configs.py
LinearConfig
dataclass
Bases: _BaseModelConfig
Configuration for a calibrated linear model.
Attributes:
Name | Type | Description |
---|---|---|
All |
|
|
use_bias |
bool
|
Whether to use a bias term for the linear combination. |