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.1.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.1.0
File Size Uploaded
shap_result_analysis-0.1.0.tar.gz 28.6 kB Details

Built distribution (wheel)

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

Total release size: 58.9 kB

Release files / shap_result_analysis-0.1.0.tar.gz

Download URL shap_result_analysis-0.1.0.tar.gz
Size 28.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1065c1f6352d25d79d254d5ae43e0ba9d976e1e7738067f9eb1d947c937f7146
BLAKE2b-256 checksum
How to use checksums
db165bbef39ba914dec551293576ee4c949397488d6b7f2b240ea5ae8333e815
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.1.0-py3-none-any.whl

Download URL shap_result_analysis-0.1.0-py3-none-any.whl
Size 30.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96856948bc630a32da7b03c3d91f080c65b2f138ab5dcfc28ff3f38005917350
BLAKE2b-256 checksum
How to use checksums
822221139e316ed42cabd528e0874f118ef745a2ee68f847986868791966d751
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

0.2.0

2 release files

This release

0.1.0 This release

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