naive_exponential_probabilistic_compression
Bases: naive_probabilistic_compression
An Exponential probabilistic compression class.
This class samples features using an Exponential distribution with a specified rate (lambda).
Methods:
Name | Description |
---|---|
__init__ |
Initializes the Exponential probabilistic compression function. |
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
Name of the transformation. Defaults to 'naive_exponential_probabilistic_compression'. |
'naive_exponential_probabilistic_compression'
|
rate
|
float
|
Rate parameter (lambda) of the Exponential distribution. Defaults to 0.5. |
0.5
|
require_normalization
|
bool
|
If True, normalizes the input tensor before sampling. Defaults to True. |
True
|
Source code in tinybig/compression/probabilistic_compression.py
__init__(name='naive_exponential_probabilistic_compression', rate=0.5, require_normalization=True, *args, **kwargs)
Initializes the Exponential probabilistic compression function.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
Name of the transformation. Defaults to 'naive_exponential_probabilistic_compression'. |
'naive_exponential_probabilistic_compression'
|
rate
|
float
|
Rate parameter (lambda) of the Exponential distribution. Defaults to 0.5. |
0.5
|
require_normalization
|
bool
|
If True, normalizes the input tensor before sampling. Defaults to True. |
True
|