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.2a1 (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.2a1.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.2a1-py3-none-any.whl (17.8 MB view details)

Uploaded Python 3

File details

Details for the file data_poisoning_detector-0.1.2a1.tar.gz.

File metadata

File hashes

Hashes for data_poisoning_detector-0.1.2a1.tar.gz
Algorithm Hash digest
SHA256 2cbbeb04de098427c813ed42a3073527171248990ecf131d5003da5cd78ff826
MD5 185f2e2e461abcadd701213c58be6be7
BLAKE2b-256 9edc5b0ee30dce206630de6746be16346dfee716ae4d60573ea5725a9b25591c

See more details on using hashes here.

File details

Details for the file data_poisoning_detector-0.1.2a1-py3-none-any.whl.

File metadata

File hashes

Hashes for data_poisoning_detector-0.1.2a1-py3-none-any.whl
Algorithm Hash digest
SHA256 49b0288c4fbe9c03b2012f7caee4866ffc3532c348f94d06613f9501ce4c7311
MD5 475eb501a7b911cb5a8fdb3d344932bd
BLAKE2b-256 82413a2b6dbd5fbb13e10b198b9919609e04c975de608b63fb9d582a9ac9a716

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