Skip to main content

Data Poisoning Detection using self-supervised learning techniques

Project description

Status: Alpha APIs may change and detection thresholds are still being refined. Results should not be considered production-stable.

This is the python library that can be used for the api requests so that users can call to check for poisons in their own datasets.


Quick Start

from poison_detector import api

#UCI dataset
report = api.analyze('uci', 73)
print(report)
clean_uci_df = api.clean('uci', 73)

#CSV file
report = api.analyze('csv', 'path/to/file/dataset.csv')
print(report)
clean_csv_df = api.clean('csv', 'path/to/file/dataset.csv')

#URL
report = api.analyze('url', 'https://webpath/to/file/dataset')
print(report)
clean_url_csv_df = api.clean('url', 'https://webpath/to/file/dataset')

## Supported Sources

- "uci" - UCI Machine Learning repository (by dataset ID).
- "csv" - Local CSV files.
- "url" - URL where an csv file is set for the dataset.

for url's in google drive you can use the following format

- https://drive.google.com/uc?id=FILE_ID&export=download

Change Log

0.1.0a2 (22/01/2026)

  • Updated the api call to accept url links.

0.1.0a1 (21/01/2026)

  • Changed version of package beta -> alpha
  • Updated the analyze and clean function to a common function instead of seperate functions for UCI and csv.

0.1.0 (19/01/2026)

  • Initial Release
  • Fixed issue with calling the model file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

data_poisoning_detector-0.1.0a2.tar.gz (17.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

data_poisoning_detector-0.1.0a2-py3-none-any.whl (17.8 MB view details)

Uploaded Python 3

File details

Details for the file data_poisoning_detector-0.1.0a2.tar.gz.

File metadata

File hashes

Hashes for data_poisoning_detector-0.1.0a2.tar.gz
Algorithm Hash digest
SHA256 e3b74133e911bf4ed7ec074270fafcc8ece7ccd3cdc2ec9e35f154b6445ef354
MD5 c868ab080b6f421c45e61c7d73b476de
BLAKE2b-256 72b8c68e563924d4e0359a85deb1f376bab99af73971ce3f06a916f235890a38

See more details on using hashes here.

File details

Details for the file data_poisoning_detector-0.1.0a2-py3-none-any.whl.

File metadata

File hashes

Hashes for data_poisoning_detector-0.1.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 46a55e582f164e8ba65f320078ca5ceec9949388242f76dc36882d6b4f427f0c
MD5 3e928369aab1fe5fc2f65cb611274abd
BLAKE2b-256 e603cd59b888800d7769b4072a54b92efd58372aab43c23f54164cdff4e7515f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page