naive_normal_probabilistic_compression
Bases: naive_probabilistic_compression
A normal probabilistic compression class.
This class samples features using a normal distribution with a specified mean and standard deviation.
Methods:
Name | Description |
---|---|
__init__ |
Initializes the normal probabilistic compression function. |
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
Name of the transformation. Defaults to 'naive_normal_probabilistic_compression'. |
'naive_normal_probabilistic_compression'
|
mean
|
float
|
Mean of the normal distribution. Defaults to 0.0. |
0.0
|
std
|
float
|
Standard deviation of the normal distribution. Defaults to 1.0. |
1.0
|
Source code in tinybig/compression/probabilistic_compression.py
__init__(name='naive_normal_probabilistic_compression', mean=0.0, std=1.0, *args, **kwargs)
Initializes the normal probabilistic compression function.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
Name of the transformation. Defaults to 'naive_normal_probabilistic_compression'. |
'naive_normal_probabilistic_compression'
|
mean
|
float
|
Mean of the normal distribution. Defaults to 0.0. |
0.0
|
std
|
float
|
Standard deviation of the normal distribution. Defaults to 1.0. |
1.0
|