AI Slop Code RIsk Monitor

uber/causalml

Uplift modeling and causal inference with machine learning algorithms

26.8 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for uber/causalml, a Python project with 6,021 GitHub stars. SynthScan examined 35,229 lines of code across 135 source files, recording 729 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 26.8 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

26.8
Adjusted Signal
26.8
Raw Pattern Score
100%
Time Factor
2026-10-05
Last Push
6.0K
Stars
Python
Language
35.2K
Lines of Code
135
Files
729
Pattern Hits
2026-10-12
Scan Date
0.12
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 53.0/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 495 finding(s).

Hallucinated Dependency & Supply Chain Risk 16.7/100 · LOW

Are imports declared and package/API names verified? 147 finding(s).

Agent Over-Engineering Ratio 62.1/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 507 finding(s).

PR Review Velocity Impact 74.5/100 · HIGH

Which changes need focused human review? 729 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 16MEDIUM 77LOW 636

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 729 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers377 hits · 356 pts
SeverityFileLineSnippetContext
LOWtests/test_benchmark_loaders.py31def test_fetch_lalonde_reproduces_the_experimental_estimate():CODE
LOWtests/test_benchmark_loaders.py44def test_fetch_ihdp_replications_differ_and_carry_ground_truth():CODE
LOWtests/test_benchmark_loaders.py79def test_fetch_ihdp_validates_its_arguments():CODE
LOWtests/test_benchmark_loaders.py87def test_fetch_twins_mortality_matches_the_published_rate():CODE
LOWtests/test_benchmark_loaders.py102def test_fetch_twins_reveals_the_twin_the_assignment_picks():CODE
LOWtests/test_benchmark_loaders.py113def test_fetch_twins_assignment_is_seeded():CODE
LOWtests/test_benchmark_loaders.py139def test_ground_truth_metrics_run_on_the_datasets_that_have_it():CODE
LOWtests/test_cate_scoring.py48def test_compute_dr_pseudo_outcomes_shape(synthetic_data):CODE
LOWtests/test_cate_scoring.py62def test_compute_dr_pseudo_outcomes_recovers_ate(synthetic_data):CODE
LOWtests/test_cate_scoring.py80def test_dr_score_returns_series(synthetic_data):CODE
LOWtests/test_cate_scoring.py94def test_dr_score_ranks_perfect_model_lowest(synthetic_data):CODE
LOWtests/test_cate_scoring.py107def test_dr_score_with_precomputed_pseudo_outcomes(synthetic_data):CODE
LOWtests/test_cate_scoring.py124def test_dr_score_shares_pseudo_outcomes_with_rate_score(synthetic_data):CODE
LOWtests/test_cate_scoring.py152def test_dr_score_return_ci_returns_dataframe(synthetic_data):CODE
LOWtests/test_cate_scoring.py168def test_dr_score_ci_bounds_ordered(synthetic_data):CODE
LOWtests/test_cate_scoring.py184def test_plug_in_t_score_returns_series(synthetic_data):CODE
LOWtests/test_cate_scoring.py198def test_plug_in_t_score_ranks_perfect_model_lowest(synthetic_data):CODE
LOWtests/test_cate_scoring.py211def test_plug_in_t_score_return_ci_returns_dataframe(synthetic_data):CODE
LOWtests/test_cate_scoring.py232def test_plug_in_t_score_missing_columns_raises(synthetic_data):CODE
LOWtests/test_cate_scoring.py238def test_compute_dr_pseudo_outcomes_handles_imbalanced_treatment():CODE
LOWtests/test_cate_scoring.py262def test_plug_in_t_score_handles_imbalanced_treatment():CODE
LOWtests/test_cate_scoring.py296def test_dr_score_and_plug_in_t_score_all_finite(synthetic_data):CODE
LOWtests/test_cate_scoring.py318def test_compute_r_residuals_shape(synthetic_data):CODE
LOWtests/test_cate_scoring.py334def test_rlearner_score_returns_series(synthetic_data):CODE
LOWtests/test_cate_scoring.py348def test_rlearner_score_ranks_perfect_model_lowest(synthetic_data):CODE
LOWtests/test_cate_scoring.py361def test_rlearner_score_with_precomputed_residuals(synthetic_data):CODE
LOWtests/test_cate_scoring.py387def test_rlearner_score_return_ci_returns_dataframe(synthetic_data):CODE
LOWtests/test_cate_scoring.py403def test_rlearner_score_ci_bounds_ordered(synthetic_data):CODE
LOWtests/test_cate_scoring.py419def test_compute_r_residuals_handles_imbalanced_treatment():CODE
LOWtests/test_cate_scoring.py445def test_rlearner_score_handles_imbalanced_treatment():CODE
LOWtests/test_cate_scoring.py479def test_dr_plug_in_t_and_rlearner_score_all_finite(synthetic_data):CODE
LOWtests/test_cate_scoring.py510def test_compute_r_residuals_skips_propensity_when_w_residual_not_needed(CODE
LOWtests/test_cate_scoring.py528def test_dr_score_without_learner(synthetic_data):CODE
LOWtests/test_cate_scoring.py540def test_plug_in_t_score_without_learner(synthetic_data):CODE
LOWtests/test_cate_scoring.py552def test_dr_score_missing_one_learner(synthetic_data):CODE
LOWtests/test_jax_dragonnet.py14def test_dragonnet_jax_fit_predict():CODE
LOWtests/test_jax_dragonnet.py36def test_dragonnet_jax_predict_propensity():CODE
LOWtests/test_jax_dragonnet.py54def test_dragonnet_jax_save_load(tmp_path):CODE
LOW⚡tests/test_meta_learners.py2031def test_fit_returns_self_regressor(Cls, kwargs):CODE
LOW⚡tests/test_meta_learners.py2038def test_fit_returns_self_classifier(Cls, kwargs):CODE
LOW⚡tests/test_meta_learners.py2044def test_xgb_rregressor_clone_no_kwargs():CODE
LOW⚡tests/test_meta_learners.py2054def test_xgb_rregressor_clone_with_kwargs():CODE
LOW⚡tests/test_meta_learners.py2295def test_t_classifier_fail_fast_return_ci_and_components():CODE
LOW⚡tests/test_meta_learners.py2303def test_x_learner_pretrain_before_fit_raises():CODE
LOW⚡tests/test_meta_learners.py2311def test_dr_learner_pretrain_before_fit_raises():CODE
LOWtests/test_meta_learners.py682def test_explainer_auto_importance_catboost(generate_regression_data):CODE
LOWtests/test_meta_learners.py1463def test_multi_treatment_learners():CODE
LOWtests/test_meta_learners.py1566 def _assert_plain_fit_predict(result, name):CODE
LOWtests/test_meta_learners.py2005def test_clone_get_params_regressor(Cls, kwargs):CODE
LOWtests/test_meta_learners.py2019def test_clone_get_params_classifier(Cls, kwargs):CODE
LOWtests/test_meta_learners.py2161def test_xgbt_classifier_clone():CODE
LOWtests/test_meta_learners.py2172def test_xgbr_classifier_clone():CODE
LOWtests/test_meta_learners.py2189def test_xgb_rregressor_fit_predict_return_ci():CODE
LOWtests/test_meta_learners.py2216def test_bit_identical_predict(Cls, kwargs):CODE
LOWtests/test_meta_learners.py2235def test_finite_predict_stochastic(Cls, kwargs):CODE
LOWtests/test_meta_learners.py2247def test_bit_identical_estimate_ate_s():CODE
LOWtests/test_meta_learners.py2258def test_t_regressor_return_ci_bit_identical():CODE
LOWtests/test_meta_learners.py2272def test_t_classifier_clone_fit_predict():CODE
LOWtests/test_meta_learners.py2281def test_x_classifier_verbatim_store_clone():CODE
LOWtests/test_meta_learners.py2323def test_base_rlearner_bootstrap_reproducibility(generate_regression_data):CODE
317 more matches not shown…
Decorative Section Separators68 hits · 238 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_meta_learners.py1497 # ── Shared assertion helpers ───────────────────────────────────────────────COMMENT
MEDIUMtests/test_meta_learners.py1572 # ── T-Learner ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_meta_learners.py1620 # ── X-Learner ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_meta_learners.py1682 # ── S-Learner ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_meta_learners.py1729 # ── DR-Learner ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_meta_learners.py1783 # ── R-Learner ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_meta_learners.py1949# =============================================================================COMMENT
MEDIUMtests/test_meta_learners.py1951# =============================================================================COMMENT
MEDIUM⚡tests/test_causal_trees.py342# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_causal_trees.py348# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_causal_trees.py891# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_causal_trees.py895# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_causal_trees.py687# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_causal_trees.py692# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_serialization_extended.py91# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_serialization_extended.py93# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_serialization_extended.py387# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_serialization_extended.py389# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization_extended.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization_extended.py35# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization_extended.py297# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization_extended.py299# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_uplift_trees_kernel.py460# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_uplift_trees_kernel.py463# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_uplift_trees_kernel.py627# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_uplift_trees_kernel.py629# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_uplift_trees_kernel.py234# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_uplift_trees_kernel.py237# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_uplift_trees_kernel.py724# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_uplift_trees_kernel.py732# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_uplift_trees_kernel.py898# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_uplift_trees_kernel.py901# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_serialization.py62# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_serialization.py64# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_serialization.py157# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_serialization.py159# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_serialization.py227# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_serialization.py229# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_serialization.py277# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_serialization.py279# ---------------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/tree/_tree/_classes.py57# =============================================================================COMMENT
MEDIUMcausalml/inference/tree/_tree/_classes.py59# =============================================================================COMMENT
MEDIUMcausalml/inference/tree/_tree/_classes.py84# =============================================================================COMMENT
MEDIUMcausalml/inference/tree/_tree/_classes.py86# =============================================================================COMMENT
MEDIUM⚡causalml/inference/meta/utils.py13# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡causalml/inference/meta/utils.py15# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡causalml/inference/meta/utils.py25# ---------------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/meta/utils.py38# ---------------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/meta/utils.py237# ---------------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/meta/utils.py239# ---------------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/meta/utils.py321# ---------------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/meta/utils.py323# ---------------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/meta/utils.py403# ---------------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/meta/utils.py405# ---------------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/jax/cevae/cevae.py134 # ------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/jax/cevae/cevae.py136 # ------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/jax/cevae/cevae.py149 # ------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/jax/cevae/cevae.py151 # ------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/jax/cevae/cevae.py317 # ------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/jax/cevae/cevae.py319 # ------------------------------------------------------------------COMMENT
8 more matches not shown…
Unused Imports147 hits · 129 pts
SeverityFileLineSnippetContext
LOWtests/test_fit_arg_order.py55CODE
LOWtests/test_counterfactual_unit_selection.py2CODE
LOWtests/test_serialization_extended.py10CODE
LOWtests/test_serialization_extended.py12CODE
LOWtests/test_serialization_extended.py13CODE
LOWtests/test_serialization.py10CODE
LOWtests/test_serialization.py13CODE
LOWtests/test_serialization.py13CODE
LOWcausalml/propensity.py5CODE
LOWcausalml/metrics/regression.py4CODE
LOWcausalml/metrics/regression.py5CODE
LOWcausalml/metrics/__init__.py1CODE
LOWcausalml/metrics/__init__.py1CODE
LOWcausalml/metrics/__init__.py1CODE
LOWcausalml/metrics/__init__.py2CODE
LOWcausalml/metrics/__init__.py2CODE
LOWcausalml/metrics/__init__.py2CODE
LOWcausalml/metrics/__init__.py3CODE
LOWcausalml/metrics/__init__.py3CODE
LOWcausalml/metrics/__init__.py3CODE
LOWcausalml/metrics/__init__.py3CODE
LOWcausalml/metrics/__init__.py3CODE
LOWcausalml/metrics/__init__.py3CODE
LOWcausalml/metrics/__init__.py3CODE
LOWcausalml/metrics/__init__.py3CODE
LOWcausalml/metrics/__init__.py13CODE
LOWcausalml/metrics/__init__.py13CODE
LOWcausalml/metrics/__init__.py13CODE
LOWcausalml/metrics/__init__.py13CODE
LOWcausalml/metrics/__init__.py13CODE
LOWcausalml/metrics/__init__.py13CODE
LOWcausalml/metrics/__init__.py21CODE
LOWcausalml/metrics/__init__.py21CODE
LOWcausalml/metrics/__init__.py21CODE
LOWcausalml/metrics/__init__.py21CODE
LOWcausalml/metrics/__init__.py21CODE
LOWcausalml/metrics/__init__.py28CODE
LOWcausalml/metrics/__init__.py28CODE
LOWcausalml/metrics/__init__.py29CODE
LOWcausalml/metrics/__init__.py29CODE
LOWcausalml/metrics/__init__.py29CODE
LOWcausalml/metrics/__init__.py30CODE
LOWcausalml/metrics/__init__.py30CODE
LOWcausalml/metrics/__init__.py30CODE
LOWcausalml/metrics/__init__.py30CODE
LOWcausalml/metrics/__init__.py36CODE
LOWcausalml/metrics/__init__.py36CODE
LOWcausalml/metrics/__init__.py37CODE
LOWcausalml/metrics/__init__.py37CODE
LOWcausalml/metrics/__init__.py37CODE
LOWcausalml/metrics/__init__.py37CODE
LOWcausalml/optimize/__init__.py1CODE
LOWcausalml/optimize/__init__.py2CODE
LOWcausalml/optimize/__init__.py3CODE
LOWcausalml/optimize/__init__.py3CODE
LOWcausalml/optimize/__init__.py3CODE
LOWcausalml/optimize/__init__.py4CODE
LOWcausalml/optimize/__init__.py5CODE
LOWcausalml/dataset/__init__.py1CODE
LOWcausalml/dataset/__init__.py1CODE
87 more matches not shown…
Docstring Block Structure9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHcausalml/metrics/ground_truth.py75Expected loss of the treat-if-``tau_hat``-is-positive policy. Following Shalit, Johansson and Sontag (2017):: STRING
HIGHcausalml/metrics/sensitivity.py266Return separate potential-outcome predictions mu1_hat, mu0_hat. Only supported for S/T/DR-learner-style objectsSTRING
HIGHcausalml/dataset/_base.py68Return the local path to a cached dataset file, downloading it if needed. The digest is verified on download and onSTRING
HIGHcausalml/dataset/_benchmarks.py111Load one replication of the IHDP benchmark. Covariates from the Infant Health and Development Program randomized trSTRING
HIGHcausalml/dataset/semiSynthetic.py279 Build the m-th iteration of the MIU (Model-based Imputation with Uncertainty) ensemble. This function implemenSTRING
HIGHcausalml/dataset/semiSynthetic.py579 Train an ensemble of M MIU models and return the best one. This function implements the complete MIU (Model-baSTRING
HIGHcausalml/dataset/semiSynthetic.py742 Perform cross-validation to find optimal hyperparameters for the MIU model. This function performs bootstrap-bSTRING
HIGHcausalml/dataset/semiSynthetic.py911 Train a single MIU model for a specific parameter combination and bootstrap iteration. This function is designSTRING
HIGHcausalml/inference/serialization.py121Load a previously saved learner from disk. Checks the saved metadata against the current environment and warns STRING
AI Structural Patterns43 hits · 42 pts
SeverityFileLineSnippetContext
LOWtests/test_serialization.py49CODE
LOWcausalml/match.py295CODE
LOWcausalml/metrics/rate.py265CODE
LOWcausalml/metrics/visualize.py18CODE
LOWcausalml/metrics/visualize.py450CODE
LOWcausalml/metrics/visualize.py555CODE
LOWcausalml/metrics/visualize.py644CODE
LOWcausalml/metrics/visualize.py693CODE
LOWcausalml/metrics/visualize.py737CODE
LOWcausalml/metrics/visualize.py779CODE
LOWcausalml/metrics/visualize.py873CODE
LOWcausalml/metrics/cate_scoring.py268CODE
LOWcausalml/metrics/cate_scoring.py396CODE
LOWcausalml/metrics/cate_scoring.py502CODE
LOWcausalml/dataset/classification.py55CODE
LOWcausalml/dataset/classification.py167CODE
LOWcausalml/dataset/classification.py171CODE
LOWcausalml/dataset/classification.py454CODE
LOWcausalml/dataset/semiSynthetic.py564CODE
LOWcausalml/dataset/semiSynthetic.py724CODE
LOWcausalml/dataset/semiSynthetic.py19CODE
LOWcausalml/inference/tree/plot.py591CODE
LOWcausalml/inference/tree/causal/causaltree.py64CODE
LOWcausalml/inference/tree/causal/causalforest.py168CODE
LOWcausalml/inference/tree/_uplift/uplifttree.py73CODE
LOWcausalml/inference/tree/_uplift/uplifttree.py661CODE
LOWcausalml/inference/tree/_uplift/upliftforest.py101CODE
LOWcausalml/inference/tree/_uplift/upliftforest.py280CODE
LOWcausalml/inference/meta/rlearner.py39CODE
LOWcausalml/inference/meta/rlearner.py339CODE
LOWcausalml/inference/meta/rlearner.py449CODE
LOWcausalml/inference/meta/rlearner.py654CODE
LOWcausalml/inference/meta/xlearner.py468CODE
LOWcausalml/inference/meta/base.py256CODE
LOWcausalml/inference/meta/base.py329CODE
LOWcausalml/inference/torch/cevae.py40CODE
LOWcausalml/inference/iv/drivlearner.py332CODE
LOWcausalml/inference/iv/drivlearner.py443CODE
LOWcausalml/inference/iv/drivlearner.py657CODE
LOWcausalml/inference/iv/drivlearner.py730CODE
LOWcausalml/inference/jax/dragonnet.py312CODE
LOWcausalml/inference/jax/cevae/cevae.py106CODE
LOWcausalml/inference/tf/dragonnet.py41CODE
Redundant / Tautological Comments26 hits · 33 pts
SeverityFileLineSnippetContext
LOWtests/test_meta_learners.py168 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py240 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py292 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py333 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py374 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py415 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py469 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py512 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py553 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py594 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py671 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py740 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py829 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py883 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py926 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py995 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py1061 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py1114 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py1130 # Check if XGBRRegressor successfully produces treatment effect estimationCOMMENT
LOWtests/test_meta_learners.py1221 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_uplift_trees.py111 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_uplift_trees.py189 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_uplift_trees.py199 # Check if the total count is split correctly, at least for control group in the first levelCOMMENT
LOWtests/test_uplift_trees.py217 # Check if it works as expected after filling with validation dataCOMMENT
LOWtests/test_uplift_trees.py256 # Check if the features with positive importance is not more than number of nodesCOMMENT
LOWtests/test_ivlearner.py75 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
Empty Error Handlers4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHtests/test_jax_dragonnet.py7except ImportError:CODE
HIGHtests/test_cevae.py8except ImportError:CODE
HIGHtests/test_dragonnet.py3except ImportError:CODE
HIGHtests/test_jax_cevae.py22except ImportError: # pragma: no cover - guarded by --runjax markerCODE
Deep Nesting17 hits · 16 pts
SeverityFileLineSnippetContext
LOWtests/test_fit_arg_order.py212CODE
LOWtests/test_fit_arg_order.py436CODE
LOWcausalml/match.py146CODE
LOWcausalml/metrics/sensitivity.py583CODE
LOWcausalml/dataset/synthetic.py39CODE
LOWcausalml/dataset/synthetic.py211CODE
LOWcausalml/dataset/synthetic.py320CODE
LOWcausalml/dataset/classification.py171CODE
LOWcausalml/dataset/classification.py454CODE
LOWcausalml/dataset/semiSynthetic.py266CODE
LOWcausalml/dataset/semiSynthetic.py564CODE
LOWcausalml/inference/tree/plot.py69CODE
LOWcausalml/inference/tree/_tree/_classes.py225CODE
LOWcausalml/inference/tree/causal/causaltree.py894CODE
LOWcausalml/inference/tree/causal/_tree.py93CODE
LOWcausalml/inference/tree/_uplift/_tree.py89CODE
LOWcausalml/inference/iv/drivlearner.py105CODE
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHcausalml/inference/meta/tlearner.py0predict treatment effects. args: x (np.matrix, np.array, pd.dataframe, pl.dataframe, or pl.lazyframe): a feature matrix.STRING
HIGHcausalml/inference/meta/slearner.py0predict treatment effects. args: x (np.matrix, np.array, pd.dataframe, pl.dataframe, or pl.lazyframe): a feature matrix.STRING
HIGHcausalml/inference/meta/drlearner.py0predict treatment effects. args: x (np.matrix, np.array, pd.dataframe, pl.dataframe, or pl.lazyframe): a feature matrix.STRING
Over-Commented Block14 hits · 14 pts
SeverityFileLineSnippetContext
LOW.readthedocs.yml21 # Read the Docs already builds on every pull request and reports a statusCOMMENT
LOWsetup.cfg1[metadata]COMMENT
LOWdocs/conf.py1#!/usr/bin/env pythonCOMMENT
LOWdocs/conf.py21# directory, add these directories to sys.path here. If the directory isCOMMENT
LOWdocs/conf.py141# for |version| and |release|, also used in various other places throughoutCOMMENT
LOWdocs/conf.py161# directories to ignore when looking for source files.COMMENT
LOWdocs/conf.py181# color-mode toggle. Pinning a single style here breaks the dark one.COMMENT
LOWdocs/conf.py221COMMENT
LOWdocs/conf.py241# which it looks for at the root of the static output, resolve there too.COMMENT
LOWdocs/conf.py261# to template names.COMMENT
LOWdocs/conf.py281# Default is True.COMMENT
LOWdocs/conf.py301COMMENT
LOWdocs/conf.py321COMMENT
LOWcausalml/inference/meta/utils.py21 pl = NoneCOMMENT
AI Slop Vocabulary5 hits · 11 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_jax_cevae.py112 # Loose bound so this stays robust to seeds / mini-batch shuffle order.COMMENT
MEDIUMcausalml/metrics/cate_scoring.py72 """Construct cross-fitted doubly-robust (AIPW) pseudo-outcomes for CATE evaluation.STRING
MEDIUMcausalml/metrics/cate_scoring.py287 """Score fitted CATE models via the doubly-robust (DR) pseudo-outcome loss.STRING
MEDIUMcausalml/inference/meta/drlearner.py128 # the outcome regression, and the treatment regression on the doubly robust estimates. The use ofCOMMENT
MEDIUMcausalml/inference/iv/drivlearner.py133 # the outcome regression, and the treatment regression on the doubly robust estimates. The use ofCOMMENT
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_uplift_trees.py90 # Create a synthetic population:COMMENT
MEDIUMtests/test_uplift_trees.py172 # Create a synthetic population:COMMENT
MEDIUMdocs/conf.py6# This file is execfile()d with the current directory set to itsCOMMENT
Modern Structural Boilerplate7 hits · 7 pts
SeverityFileLineSnippetContext
LOWcausalml/__init__.py1__all__ = [CODE
LOWcausalml/metrics/ground_truth.py17__all__ = ["pehe", "ate_error", "policy_risk"]CODE
LOWcausalml/inference/tree/_tree/__init__.py12__all__ = [CODE
LOWcausalml/inference/jax/__init__.py4__all__ = ["DragonNet", "CEVAE"]CODE
LOWcausalml/inference/jax/cevae/__init__.py5__all__ = ["CEVAE"]CODE
LOWcausalml/inference/jax/cevae/cevae.py31logger = logging.getLogger(__name__)CODE
LOWcausalml/inference/jax/cevae/losses.py59__all__ = ["cevae_loss", "trace_causal_effect_elbo"]CODE
Excessive Try-Catch Wrapping5 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/test_fit_arg_order.py230 except Exception: # optional backend absent, or an import-time failureCODE
LOWcausalml/dataset/_base.py111 except Exception as exc:CODE
LOWcausalml/inference/serialization.py34 except Exception:CODE
LOWcausalml/inference/serialization.py74 except Exception:CODE
LOWcausalml/inference/tree/plot.py200 except Exception as e:CODE
Modern AI Meta-Vocabulary1 hit · 4 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/test_uplift_trees_kernel.py462# on sklearn's ForestRegressor scaffolding, replacing the legacy joblib forest.COMMENT