Repository Analysis

uber/causalml

Uplift modeling and causal inference with machine learning algorithms

22.5 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of uber/causalml, a Python project with 5,921 GitHub stars. SynthScan v2.0 examined 26,754 lines of code across 115 source files, recording 467 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 22.5 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

22.5
Adjusted Score
22.5
Raw Score
100%
Time Factor
2026-07-13
Last Push
5.9K
Stars
Python
Language
26.8K
Lines of Code
115
Files
467
Pattern Hits
2026-07-14
Scan Date
0.08
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 9MEDIUM 45LOW 413

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 467 distinct pattern matches across 13 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers189 hits · 186 pts
SeverityFileLineSnippetContext
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_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
LOWtests/test_meta_learners.py2021def test_fit_returns_self_regressor(Cls, kwargs):CODE
LOWtests/test_meta_learners.py2028def test_fit_returns_self_classifier(Cls, kwargs):CODE
LOWtests/test_meta_learners.py2034def test_xgb_rregressor_clone_no_kwargs():CODE
LOWtests/test_meta_learners.py2044def test_xgb_rregressor_clone_with_kwargs():CODE
LOWtests/test_meta_learners.py2053def test_xgb_rregressor_fit_predict_return_ci():CODE
LOWtests/test_meta_learners.py2154def test_t_classifier_fail_fast_return_ci_and_components():CODE
LOWtests/test_meta_learners.py2162def test_x_learner_pretrain_before_fit_raises():CODE
LOWtests/test_meta_learners.py2170def test_dr_learner_pretrain_before_fit_raises():CODE
LOWtests/test_meta_learners.py668def test_explainer_auto_importance_catboost(generate_regression_data):CODE
LOWtests/test_meta_learners.py1451def test_multi_treatment_learners():CODE
LOWtests/test_meta_learners.py1555 def _assert_plain_fit_predict(result, name):CODE
LOWtests/test_meta_learners.py1995def test_clone_get_params_regressor(Cls, kwargs):CODE
LOWtests/test_meta_learners.py2009def test_clone_get_params_classifier(Cls, kwargs):CODE
LOWtests/test_meta_learners.py2075def test_bit_identical_predict(Cls, kwargs):CODE
LOWtests/test_meta_learners.py2094def test_finite_predict_stochastic(Cls, kwargs):CODE
LOWtests/test_meta_learners.py2106def test_bit_identical_estimate_ate_s():CODE
LOWtests/test_meta_learners.py2117def test_t_regressor_return_ci_bit_identical():CODE
LOWtests/test_meta_learners.py2131def test_t_classifier_clone_fit_predict():CODE
LOWtests/test_meta_learners.py2140def test_x_classifier_verbatim_store_clone():CODE
LOWtests/conftest.py32def generate_classification_data():CODE
LOWtests/conftest.py51def generate_classification_data_two_treatments():CODE
LOWtests/conftest.py87def pytest_collection_modifyitems(config, items):CODE
LOWtests/test_features.py7def generate_categorical_data():CODE
LOWtests/test_uplift_trees.py17def test_make_uplift_classification(generate_classification_data):CODE
LOWtests/test_uplift_trees.py260def test_uplift_tree_visualization():CODE
LOWtests/test_uplift_trees.py370def test_uplift_tree_pvalue_no_nan_with_sparse_groups():CODE
LOWtests/test_datasets.py40def test_get_synthetic_summary():CODE
LOWtests/test_datasets.py52def test_get_synthetic_preds_holdout():CODE
LOWtests/test_datasets.py72def test_get_synthetic_summary_holdout():CODE
LOWtests/test_counterfactual_unit_selection.py15def test_counterfactual_unit_selection():CODE
LOWtests/test_causal_trees.py64 def prepare_multi_treatment_data(self, generate_regression_data, n_treatments: int):CODE
LOWtests/test_causal_trees.py259 def test_unbiased_sampling_error(CODE
129 more matches not shown…
Decorative Section Separators38 hits · 136 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_meta_learners.py1486 # ── Shared assertion helpers ───────────────────────────────────────────────COMMENT
MEDIUMtests/test_meta_learners.py1561 # ── T-Learner ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_meta_learners.py1609 # ── X-Learner ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_meta_learners.py1671 # ── S-Learner ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_meta_learners.py1721 # ── DR-Learner ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_meta_learners.py1775 # ── R-Learner ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/test_meta_learners.py1941# =============================================================================COMMENT
MEDIUMtests/test_meta_learners.py1943# =============================================================================COMMENT
MEDIUMtests/test_serialization_extended.py91# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization_extended.py93# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization_extended.py384# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization_extended.py386# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization_extended.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization_extended.py35# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization_extended.py294# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization_extended.py296# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization.py62# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization.py64# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization.py157# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization.py159# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization.py221# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization.py223# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization.py271# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_serialization.py273# ---------------------------------------------------------------------------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
MEDIUMcausalml/inference/meta/utils.py7# ---------------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/meta/utils.py9# ---------------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/meta/utils.py19# ---------------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/meta/utils.py32# ---------------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/meta/utils.py231# ---------------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/meta/utils.py233# ---------------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/meta/utils.py315# ---------------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/meta/utils.py317# ---------------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/meta/utils.py397# ---------------------------------------------------------------------------COMMENT
MEDIUMcausalml/inference/meta/utils.py399# ---------------------------------------------------------------------------COMMENT
Unused Imports129 hits · 116 pts
SeverityFileLineSnippetContext
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__.py2CODE
LOWcausalml/metrics/__init__.py2CODE
LOWcausalml/metrics/__init__.py2CODE
LOWcausalml/metrics/__init__.py2CODE
LOWcausalml/metrics/__init__.py2CODE
LOWcausalml/metrics/__init__.py12CODE
LOWcausalml/metrics/__init__.py12CODE
LOWcausalml/metrics/__init__.py12CODE
LOWcausalml/metrics/__init__.py12CODE
LOWcausalml/metrics/__init__.py12CODE
LOWcausalml/metrics/__init__.py12CODE
LOWcausalml/metrics/__init__.py20CODE
LOWcausalml/metrics/__init__.py20CODE
LOWcausalml/metrics/__init__.py20CODE
LOWcausalml/metrics/__init__.py20CODE
LOWcausalml/metrics/__init__.py20CODE
LOWcausalml/metrics/__init__.py27CODE
LOWcausalml/metrics/__init__.py27CODE
LOWcausalml/metrics/__init__.py28CODE
LOWcausalml/metrics/__init__.py28CODE
LOWcausalml/metrics/__init__.py28CODE
LOWcausalml/metrics/__init__.py29CODE
LOWcausalml/metrics/__init__.py29CODE
LOWcausalml/metrics/__init__.py29CODE
LOWcausalml/metrics/__init__.py29CODE
LOWcausalml/metrics/__init__.py35CODE
LOWcausalml/metrics/__init__.py35CODE
LOWcausalml/metrics/__init__.py36CODE
LOWcausalml/metrics/__init__.py36CODE
LOWcausalml/metrics/__init__.py36CODE
LOWcausalml/metrics/__init__.py36CODE
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__.py2CODE
LOWcausalml/dataset/__init__.py3CODE
LOWcausalml/dataset/__init__.py4CODE
LOWcausalml/dataset/__init__.py5CODE
LOWcausalml/dataset/__init__.py6CODE
69 more matches not shown…
Redundant / Tautological Comments27 hits · 34 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.py226 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py278 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py319 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py360 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py401 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py455 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py498 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py539 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py580 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py657 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py726 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py815 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py869 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py912 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py981 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py1047 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py1100 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_meta_learners.py1116 # Check if XGBRRegressor successfully produces treatment effect estimationCOMMENT
LOWtests/test_meta_learners.py1209 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
LOWtests/test_cevae.py54 # Check if the cumulative gain when using the model's prediction isCOMMENT
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.py214 # Check if it works as expected after filling with validation dataCOMMENT
LOWtests/test_uplift_trees.py253 # Check if the features with positive importance is not more than number of nodesCOMMENT
LOWtests/test_ivlearner.py74 # Check if the normalized AUUC score of model's prediction is higher than random (0.5).COMMENT
AI Structural Patterns35 hits · 34 pts
SeverityFileLineSnippetContext
LOWtests/test_serialization.py49CODE
LOWcausalml/match.py256CODE
LOWcausalml/metrics/rate.py179CODE
LOWcausalml/metrics/visualize.py17CODE
LOWcausalml/metrics/visualize.py449CODE
LOWcausalml/metrics/visualize.py554CODE
LOWcausalml/metrics/visualize.py643CODE
LOWcausalml/metrics/visualize.py692CODE
LOWcausalml/metrics/visualize.py736CODE
LOWcausalml/metrics/cate_scoring.py262CODE
LOWcausalml/metrics/cate_scoring.py390CODE
LOWcausalml/metrics/cate_scoring.py496CODE
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.py576CODE
LOWcausalml/inference/tree/causal/causaltree.py29CODE
LOWcausalml/inference/tree/causal/causalforest.py158CODE
LOWcausalml/inference/meta/rlearner.py32CODE
LOWcausalml/inference/meta/rlearner.py329CODE
LOWcausalml/inference/meta/rlearner.py436CODE
LOWcausalml/inference/meta/rlearner.py641CODE
LOWcausalml/inference/meta/xlearner.py468CODE
LOWcausalml/inference/meta/base.py254CODE
LOWcausalml/inference/meta/base.py324CODE
LOWcausalml/inference/torch/cevae.py38CODE
LOWcausalml/inference/iv/drivlearner.py326CODE
LOWcausalml/inference/iv/drivlearner.py631CODE
LOWcausalml/inference/iv/drivlearner.py701CODE
LOWcausalml/inference/jax/dragonnet.py310CODE
LOWcausalml/inference/tf/dragonnet.py39CODE
Docstring Block Structure6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHcausalml/metrics/sensitivity.py263Return separate potential-outcome predictions mu1_hat, mu0_hat. Only supported for S/T/DR-learner-style objectsSTRING
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.py108Load a previously saved learner from disk. Checks the saved metadata against the current environment and warns STRING
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
Deep Nesting14 hits · 14 pts
SeverityFileLineSnippetContext
LOWcausalml/match.py133CODE
LOWcausalml/metrics/sensitivity.py574CODE
LOWcausalml/dataset/synthetic.py35CODE
LOWcausalml/dataset/synthetic.py207CODE
LOWcausalml/dataset/synthetic.py316CODE
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.py413CODE
LOWcausalml/inference/tree/causal/_tree.py62CODE
LOWcausalml/inference/iv/drivlearner.py99CODE
Over-Commented Block13 hits · 13 pts
SeverityFileLineSnippetContext
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.py81# release = causalml.__version__COMMENT
LOWdocs/conf.py101# If true, '()' will be appended to :func: etc. cross-reference text.COMMENT
LOWdocs/conf.py121COMMENT
LOWdocs/conf.py141# A shorter title for the navigation bar. Default is the same asCOMMENT
LOWdocs/conf.py161# bottom, using the given strftime format.COMMENT
LOWdocs/conf.py181# If true, the index is split into individual pages for each letter.COMMENT
LOWdocs/conf.py201# html_file_suffix = NoneCOMMENT
LOWdocs/conf.py221COMMENT
LOWdocs/conf.py241# latex_show_urls = FalseCOMMENT
LOWcausalml/inference/meta/utils.py21#COMMENT
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
AI Slop Vocabulary4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMcausalml/metrics/cate_scoring.py66 """Construct cross-fitted doubly-robust (AIPW) pseudo-outcomes for CATE evaluation.STRING
MEDIUMcausalml/metrics/cate_scoring.py279 """Score fitted CATE models via the doubly-robust (DR) pseudo-outcome loss.STRING
MEDIUMcausalml/inference/meta/drlearner.py122 # the outcome regression, and the treatment regression on the doubly robust estimates. The use ofCOMMENT
MEDIUMcausalml/inference/iv/drivlearner.py127 # the outcome regression, and the treatment regression on the doubly robust estimates. The use ofCOMMENT
Modern Structural Boilerplate3 hits · 3 pts
SeverityFileLineSnippetContext
LOWcausalml/__init__.py1__all__ = [CODE
LOWcausalml/inference/tree/_tree/__init__.py12__all__ = [CODE
LOWcausalml/inference/jax/__init__.py3__all__ = ["DragonNet"]CODE
Excessive Try-Catch Wrapping3 hits · 3 pts
SeverityFileLineSnippetContext
LOWcausalml/inference/serialization.py32 except Exception:CODE
LOWcausalml/inference/serialization.py61 except Exception:CODE
LOWcausalml/inference/tree/plot.py200 except Exception as e:CODE