Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

capre

Latest version: v0.3.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: andystats
0 Stars
0 Forks
1 Versions
Python Repo language

Scan summary

capre was last scanned on 29 Nov 2026 at version 0.3.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 29 Nov 2026.
  • Findings: No rules fired in version 0.3.0.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.0 LATEST 29 Nov 2026 No rules fired

No rules fired in 0.3.0

Findings

Findings for v0.3.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.3.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

capre: Causal Price-Elastic Recourse for Clinical and Tabular Risk Models

capre (Causal Price-Elastic Recourse) generates actionable, budget-feasible counterfactual recourse plans by combining:

  1. DAG & Partial-Knowledge Tier Gating (DAGSpec, DAGSpec.from_tiers): Excludes non-ancestor diagnostic proxies (such as 48-hour laboratory draw counts and missingness indicators) without requiring a complete clinical DAG (supporting sink-only exclusions or coarse (baseline, levers, mediators, sinks) tiers), while flagging confounded_ancestors sharing unmeasured backdoor paths with the outcome.
  2. Abduct-Act-Predict Propagation & Interventional Causal Shapley (LinearStructuralModel): Propagates upstream interventions through ridge or cubic-spline structural mediator equations and ranks candidate levers by marginal-residual Interventional Causal Shapley efficiency.
  3. Microeconomic Disutility & Effort-Isometric Surface Warping (LeverSpec, PriceTable): Models shared domain initiation costs (economies of scope), directional convex marginal effort, Incremental Cost-Effectiveness Ratios (icer), Net Clinical Benefit (net_benefit), and effort-isometric coordinate maps z = Psi_x(x') (PriceTable.elastic_warp_vector), while selecting diverse candidate bundles across clinical domains and lever sets.
  4. SuperLearner Stacking & Model-Dependence Bounds (CapreSuperLearner, MahalanobisOverlapIndex): Pairs cross-validated log-loss ensemble predictions with inter-learner dispersion sigma_MD(x') (supporting conservative gating p_SL(x') + lambda_MD * sigma_MD(x') <= tau*) and Kish Effective Sample Size (overlap_ess) counterfactual support diagnostics.

Installation

pip install capre

Quick Example

from capre import CapreExplainer, CapreSuperLearner, make_icu_hapri_demo

demo = make_icu_hapri_demo(n=1000, seed=42)
sl_anc = CapreSuperLearner(feature_columns=demo.ancestor_columns, seed=42).fit(
    demo.df, demo.df[demo.outcome]
)
tau = sl_anc.oof_youden_threshold()

explainer = CapreExplainer.from_superlearner(
    causal_superlearner=sl_anc,
    train_df=demo.df,
    feature_columns=demo.feature_columns,
    outcome=demo.outcome,
    price_table=demo.price_table,
    dag=demo.dag,
)

high_risk_row = demo.df.loc[sl_anc.predict_risk(demo.df) > tau + 0.15].iloc[0]
result = explainer.explain(high_risk_row, threshold=tau, budget=5.0, lambda_md=0.5)
print(result.to_json())

Vignettes and Interactive Companion

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases capre

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229