Skip to main content

AIGrammar Python package

Project description

AIGrammar

About

AIGrammar is all in one and easy to use package for model diagnostic and vulnerability checks. It enable with a simple line of code to check model metrics and prediction generalizability, feature contribution, and model vulnerability against adversarial attacks.

Data

  • Multicollinearity
  • Data drift

Model

  • Metric metric comparison
    • roc_auc vs average precision
  • Optimal threshold vs 50% threshold

Feature importance

  • Too high importance
  • 0 impact
  • Negative influence (FLOFO)
  • Causes of overfitting

Adversarial Attack

  • Model vulnerability identification based on one feature minimal change for getting opposite outcome.

Usage Python 3.7+ required. Installation: pip install AIGrammar

Example:

aig = AIGrammar(train, test, model, target_name)
aig.measure_all(X0_shap_values, X1_shap_values)

print(aig.diagnosis)
print(aig.warnings)

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

AIGrammar-0.0.6.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file AIGrammar-0.0.6.tar.gz.

File metadata

  • Download URL: AIGrammar-0.0.6.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for AIGrammar-0.0.6.tar.gz
Algorithm Hash digest
SHA256 d7aa4b7a48e4768ac8cc21d788682440eec4112b996ad63dc812099a1137c9c6
MD5 b194a8e2292926d6b003ae922d5e398d
BLAKE2b-256 97773af5016e9aeb3843725a45068735aa0ea03c94976ed7c759f82a8ad31723

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