Util
add_asymmetric_noise
Util function to add asymmetric noise to labels for simulation of noisy label scenarios.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
labels |
Series
|
Input pandas series with integer values ranging from 0 to n - 1. |
required |
noise_prob |
float
|
Probability of adding noise to each value. |
required |
random_state |
Union[RandomState, None]
|
Random seed for reproducibility |
42
|
Returns:
pd.Series: Series with asymmetric noise added to it.
float: Normalized quantification of pairwise disagreement between labels
and noisy_labels
for parity check
Source code in dqc/utils/noise_utils.py
show_versions
Print useful debugging information
Returns:
Name | Type | Description |
---|---|---|
dict |
Dictionary object containing system information |