Noise Handling
NOISE_HANDLING
Source code in engines/contentFilterEngine/miscellaneous_techniques/noise_handling.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|
__init__(method='isolation_forest', contamination=0.1)
Initialize noise handling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
method
|
str
|
Noise detection method ('isolation_forest', 'zscore', 'iqr') |
'isolation_forest'
|
contamination
|
float
|
Expected proportion of outliers in the dataset |
0.1
|
Source code in engines/contentFilterEngine/miscellaneous_techniques/noise_handling.py
7 8 9 10 11 12 13 14 15 16 17 18 |
|
fit_transform(X)
Detect and handle noisy samples in the data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
X
|
Input data |
required |
Source code in engines/contentFilterEngine/miscellaneous_techniques/noise_handling.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
|
transform(X)
Apply noise detection to new data.
Source code in engines/contentFilterEngine/miscellaneous_techniques/noise_handling.py
45 46 47 48 49 50 51 52 |
|