Skip to main content

Adversarial test for tabular data

Project description

Adversarial test: simple way to know if your train data and test data are similar

We combine our train and test data, labeling them 0 for the training data and 1 for the test data, mix them up, then see if we are able to correctly re-identify them using a binary classifier.

If a classifier can identify whether a sample comes from train or test data set, we know that there's at least one feature in your data is shifted; use feature importance methods to point out the shifted feature(s)

Get Started and Documentation

To install from pip:

pip install adversarial-test

Code example:

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

adversarial-test-0.1.4.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file adversarial-test-0.1.4.tar.gz.

File metadata

  • Download URL: adversarial-test-0.1.4.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for adversarial-test-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3b65fd4e19dd9a58c9376c6855693368db229cff7710f39a1821d0edefc19f72
MD5 0d5bb096c20a9063b7b86a2d2f6421b2
BLAKE2b-256 d7f210b4d8d8758f619ea56f0c7398fbf28cc2cbe78af8b6b6d1964dfcfda2e2

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