naive_laplace_probabilistic_compression
Bases: naive_probabilistic_compression
A Laplace probabilistic compression class.
This class samples features using a Laplace distribution with a specified location (mean) and scale (spread).
Methods:
Name | Description |
---|---|
__init__ |
Initializes the Laplace probabilistic compression function. |
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
Name of the transformation. Defaults to 'naive_laplace_probabilistic_compression'. |
'naive_laplace_probabilistic_compression'
|
loc
|
float
|
Location parameter of the Laplace distribution (mean). Defaults to 0.0. |
0.0
|
scale
|
float
|
Scale parameter of the Laplace distribution (spread). Defaults to 1.0. |
1.0
|
Source code in tinybig/compression/probabilistic_compression.py
__init__(name='naive_laplace_probabilistic_compression', loc=0.0, scale=1.0, *args, **kwargs)
Initializes the Laplace probabilistic compression function.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
Name of the transformation. Defaults to 'naive_laplace_probabilistic_compression'. |
'naive_laplace_probabilistic_compression'
|
loc
|
float
|
Location parameter of the Laplace distribution (mean). Defaults to 0.0. |
0.0
|
scale
|
float
|
Scale parameter of the Laplace distribution (spread). Defaults to 1.0. |
1.0
|