Skip to main content

Train_test splitter with adversarial validation

Project description

ATTS (Auto Train Test Splitter) splits the given dataframe to train and test taking into account the Concept Drift. It does this with xgboost running in the background.

Calculates roc_auc scores for the given test size values. Creates a dataframe with these values. Provides easier change visibility with chart.

The code is Python 3

Installation

Fast install:

pip install atts

For a manual install get this package:

wget https://github.com/alikula314/att_split/atts/archive/master.zip
unzip master.zip
rm master.zip
cd atts-master

Install the package:

python setup.py install

Example on Red Wine Quality Dataset

pip install atts
from atts.auto_test_splitter import atts

# run module
k = ATTS(df, "quality" , 0.05, 0.50, 0.05)

# get auc_score - test_size dataframe
k.test_sizes_df()

#get the plot
k.test_sizes_plot(800,400)

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

atts-0.0.8.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

atts-0.0.8-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file atts-0.0.8.tar.gz.

File metadata

  • Download URL: atts-0.0.8.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.4

File hashes

Hashes for atts-0.0.8.tar.gz
Algorithm Hash digest
SHA256 9056e2cc14ab3fe916dbdc3ff98e62f2e91b720b35f5739156d86a3bcd1a4d2c
MD5 6759c2eb8a1eb6bc5bc6ad0f4692ea29
BLAKE2b-256 1539c3bca747548cc87fd3ced43934144636669f74319ae7820e0b3666bb4787

See more details on using hashes here.

File details

Details for the file atts-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: atts-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.4

File hashes

Hashes for atts-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 120396c9083e306e9863c43d12d6ba8b406e758a47232f9b788828e5cd6cd147
MD5 608164288b7fa4affa2559fe9ba687d5
BLAKE2b-256 e9db64a76e5b16aaa2c97293414a3a54c5ade29fa49f4433b3f7a4778338ac3a

See more details on using hashes here.

Supported by

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