Instance noise reduction framework based on Deep Learning gradients agnostic to the network architecture.
Project description
DenoGrad: Deep Gradient Denoising Framework
📄 Description
DenoGrad is a novel gradient-based denoising framework designed to enhance the robustness and performance of Artificial Intelligence models, with a specific focus on interpretable (white-box) models.
Unlike conventional techniques that simply remove noisy instances or significantly alter the data distribution, DenoGrad leverages the gradients of a reference Deep Learning (DL) model—trained on the target data—to dynamically detect and correct noisy samples.
🚀 Key Features
- Gradient-Based Correction: Utilizes gradient information from deep models to guide the noise reduction process effectively.
- Distribution Preservation: Corrects instances while maintaining the original data distribution, avoiding oversimplification of the problem space.
- Task Agnostic: Validated effectively on both tabular data and time-series datasets.
- Interpretable AI Enhancement: Specifically engineered to boost the performance of interpretable models in noisy environments without sacrificing transparency.
🛠️ Installation
pip install denograd
📖 Basic Usage
import torch
import torch.nn as nn
from denograd import DenoGrad
# Initialize the denoiser with your reference model
denoiser = DenoGrad(
model=my_deep_model, # DL model fitted to noisy data
criterion=nn.MSELoss(),
)
# 1. Fit the noisy data
# For Tabular Data
denoiser.fit(
X=x_noisy,
y=y_noisy,
is_ts=False
)
# For Time Series (requires window_size)
# denoiser.fit(
# X=x_noisy,
# y=['y'], # y_noisy is also accepted
# is_ts=True,
# window_size=24,
# future=1,
# stride=1
# )
# 2. Denoise the dataset
x_clean, y_clean, x_gradients, y_gradients = denoiser.transform(
nrr = 0.05, # Noise Reduction Rate. Same functionality as learning rate but for denoising porposes.
nr_threshold = 0.01, # "Level" of noise allowed.
max_epochs = 200, # Max number of epochs to perform the denoising process.
denoise_y = True, # Enable denoising for the target variable (recommended for Tabular).
batch_size = 1024,
save_gradients = True # Save all the gradients calculated through the denoising process.
)
📝 Citation
If you use DenoGrad in your research, please cite our paper:
ON REVISION
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file denograd-1.0.1.tar.gz.
File metadata
- Download URL: denograd-1.0.1.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4229bee48f77a4085d390f9e3af93527cfda47ddd8a5a6e76f36462cf17bfcc3
|
|
| MD5 |
4da17cf5df9a810548a99bdcf60c7011
|
|
| BLAKE2b-256 |
38a9d9ecc718028e283debbfe9bb8dfab3394c78864a263f30dd875e0ac4dea6
|
File details
Details for the file denograd-1.0.1-py3-none-any.whl.
File metadata
- Download URL: denograd-1.0.1-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f3c4d765ad39b3c33f07073e4306bd7e9b9e0774a15422ff558878d745daf1f
|
|
| MD5 |
610225ffa0b7514748999ced47f75cf9
|
|
| BLAKE2b-256 |
ddf733b19a8765ae5b9b7ffb7aab9bda9e6fd494b2002a6c456534e20f8d7b32
|