Skip to main content

Helper functions for running queries, ml pipeline, statistical analysis on SQUAAD framework

Project description

SQUAAD ANALYSIS FRAMEWORK

Installation

pip install squaad

Releases

  • V2.0 https://github.com/fostiropoulos/squaad/releases/download/v2.0/squaad-2.0.tar.gz

Install from Binary

pip install squaad-2.0.tar.gz

Usage

Creating new database connection

myConnection=db("config.json","cache")
print("Connection Status: %s"%myConnection.testConnection())

Config.json and Cache

  • Config.json follows the following format:
{"pgsql":{"host":"","user":"","passwd":"","db":""} }
  • Cache folder is used to save results of the queries and uses the cache next time you execute a query.

Games-Howell Statistics Test

stats.gamesHowellBinomial({"GROUP1":{True:100, False:3999}, "GROUP2":{True:2999,False:2939}})

Classification Pipeline with KFold Usage

Parameters

  • X Pandas dataframe with set of data. Each column is a feature
  • Y Labels for the set of data.
  • split_columns (Optional) unimplemented, columns to split by. That is columns that can have bias, we take into consideration during splitting
  • kfolds (Optional) number of folds to run.
  • classifiers (Optional) dictionary containing classifiers to use
  • balancers (Optional) the balancers you want to run

Classifiers

Default Classifiers:

  • Nearest Neighbors
  • Linear SVM
  • RBF SVM
  • Gaussian Process
  • Decision Tree
  • Random Forest
  • Neural Net
  • AdaBoost
  • Naive Bayes
  • QDA

Balancers

Default Classifiers:

  • Unbalanced
  • SMOTE
  • SMOTEEN
  • SMOTETomek
  • RandomUnderSampler

ML Pipeline examples

X=df[['locs_inc', 'cplxs_inc', 'smls_inc', 'vuls_inc', 'fbgs_inc', 'locs_dec', 'cplxs_dec', 'smls_dec', 'vuls_dec', 'fbgs_dec']]
Y=df['affiliation']
mlPipeline.classificationPipeLineKfold(X,Y)

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

squaad-2.1.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

squaad-2.1-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

Details for the file squaad-2.1.tar.gz.

File metadata

  • Download URL: squaad-2.1.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for squaad-2.1.tar.gz
Algorithm Hash digest
SHA256 c055f69a55a3e7e73697621424e7ea88f6f25a8d32fa81da8f3699f413e28053
MD5 8dd88fcbdce3d0587aa8b6534218f073
BLAKE2b-256 58d88bd6832ec19f00b7fdd5aee177859a2bc8182274670e46941831e79b5a44

See more details on using hashes here.

File details

Details for the file squaad-2.1-py3-none-any.whl.

File metadata

  • Download URL: squaad-2.1-py3-none-any.whl
  • Upload date:
  • Size: 33.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for squaad-2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5b7f5b288c9286878b9fac78c76be35d6eef04092edd097948d0f93bad0bcd7b
MD5 0f430f5d92bf774f34eae7b4be58faaa
BLAKE2b-256 8eb62ceacbfe685da2b19772651e01857730116085c8c3d4246b1ce26374dad8

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