laplacian_kernel_interdependence
Bases: numerical_kernel_based_interdependence
A kernel-based interdependence class using the Laplacian kernel.
Notes
Laplacian Kernel:
\[ \begin{equation} \text{kernel}(\mathbf{x}, \mathbf{y} | \sigma) = \exp \left(- \frac{\left\| \mathbf{x} - \mathbf{y} \right\|_1}{ \sigma} \right). \end{equation} \]
Attributes:
Name | Type | Description |
---|---|---|
kernel |
Callable
|
The Laplacian kernel function. |
Methods:
Name | Description |
---|---|
__init__ |
Initializes the Laplacian kernel interdependence function. |
Source code in tinybig/interdependence/numerical_kernel_interdependence.py
__init__(name='laplacian_kernel_interdependence', sigma=1.0, *args, **kwargs)
Initializes the Laplacian kernel interdependence function.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
Name of the interdependence function. Defaults to 'laplacian_kernel_interdependence'. |
'laplacian_kernel_interdependence'
|
sigma
|
float
|
Scale parameter for the Laplacian kernel. Defaults to 1.0. |
1.0
|
*args
|
tuple
|
Additional positional arguments for the parent class. |
()
|
**kwargs
|
dict
|
Additional keyword arguments for the parent class. |
{}
|