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.1

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.1
File Size Uploaded
shap_result_analysis-0.2.1.tar.gz 30.7 kB Details

Built distribution (wheel)

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

Total release size: 61.8 kB

Release files / shap_result_analysis-0.2.1.tar.gz

Download URL shap_result_analysis-0.2.1.tar.gz
Size 30.7 kB
Tags Source
SHA-256 checksum
How to use checksums
282606b7c80cf77e1eee78b9d4c2319e01406e9a34dd2a303f538d911da2227c
BLAKE2b-256 checksum
How to use checksums
3f0d1219e4afdd75a8b59ecde0cbef9bbf8af9d12e6d160c15e833b372b997e1
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.1-py3-none-any.whl

Download URL shap_result_analysis-0.2.1-py3-none-any.whl
Size 31.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c15a580fb17410c1c486e5189c6cb72f50b97c8f7d7d052a42108013e25c6fe
BLAKE2b-256 checksum
How to use checksums
7e392b9c6701f0e5d9893e00566b08ba4ebc6cd22c4b9ba818b3f474d48c4fed
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

This release

0.2.1 This release

2 release files

0.2.0

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