Skip to main content

shap-result-analysis

shap-result-analysis runs a survival-model result pipeline around recommendations produced by shap-recommender. It supports exclusion, non-linearity and interaction variants, independent confirmation, comparator models, sequential ablation, calibration, proportional-hazards checks and subgroup reporting.

Installation

pip install shap-result-analysis

Input files

The pipeline expects a data directory containing feature_spec.json and the following tab-separated files:

  • X_disc_model.tsv and y_disc.tsv
  • X_conf_model.tsv and y_conf.tsv
  • X_train_model.tsv and y_train.tsv
  • X_test_model.tsv and y_test.tsv
  • X_train_original.tsv and X_test_original.tsv

Each outcome file must contain event and time columns. By default the data directory is rebuttal_data, matching the source pipeline.

Command line

Run the full pipeline from the directory containing the data directory:

shap-result-analysis

Optional stages can be skipped:

shap-result-analysis --skip-validation --skip-comparators --skip-ablation

Library use

from result_analysis import main

main(
    run_validation=True,
    run_comparators=True,
    run_ablation=True,
    run_dose_response=True,
    run_margin=False,
)

License

MIT

Release files for shap-result-analysis 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shap-result-analysis 0.2.0
File Size Uploaded
shap_result_analysis-0.2.0.tar.gz 30.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shap-result-analysis 0.2.0
File Interpreter ABI Platform
shap_result_analysis-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 61.7 kB

Release files / shap_result_analysis-0.2.0.tar.gz

Download URL shap_result_analysis-0.2.0.tar.gz
Size 30.6 kB
Tags Source
SHA-256 checksum
How to use checksums
882c5ce631ed6c8a6f0c70df441ef5eeec4c1ca2a1c7c9b589b9881e67cf1420
BLAKE2b-256 checksum
How to use checksums
9bca28a788b0e12f772e0bccd2a16186aac4acb77388cc4c3728fb1342fcf079
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Release files / shap_result_analysis-0.2.0-py3-none-any.whl

Download URL shap_result_analysis-0.2.0-py3-none-any.whl
Size 31.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
828b50cdb9ef5e3b8b73b4da293afe7ee552c9b90f5257210ec921aa8b173e94
BLAKE2b-256 checksum
How to use checksums
43d285efac7e6f64561ceb7ac774a9e1d755edf03716abf6d27c8f42efcfc177
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Release history Release notifications | RSS feed

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page