Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

atts

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atts

Train_test splitter with adversarial validation

  • 0.0.8
  • PyPI
  • Socket score

Maintainers
1

Auto_train_test_splitter

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

.. code:: python

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)



Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc