Bayesian Modeling and Probabilistic Programming in Python
This report summarizes scanner evidence for pymc-devs/pymc, a Python project with 9,801 GitHub stars. SynthScan examined 116,136 lines of code across 327 source files, recording 1935 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 17.5 (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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1442 finding(s).
Are imports declared and package/API names verified? 372 finding(s).
Are wrappers, guards, and repeated structures necessary? 1133 finding(s).
Which changes need focused human review? 1935 finding(s).
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.
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.
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.
The scanner identified 1935 distinct pattern matches across 16 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/pytensorf.py | 139 | def dataframe_to_tensor_variable(df: pd.DataFrame, *args, **kwargs) -> TensorVariable: | CODE |
| LOW | pymc/pytensorf.py | 712 | def collect_default_updates_inner_fgraph(node: Apply) -> dict[Variable, Variable]: | CODE |
| LOW | pymc/pytensorf.py | 892 | def resolve_backend_compile_kwargs(backend: str | None, compile_kwargs: dict | None) -> dict: | CODE |
| LOW | pymc/_version.py | 184 | def git_versions_from_keywords( | CODE |
| LOW | pymc/util.py | 401 | def check_dist_not_registered(dist, model=None): | CODE |
| LOW | pymc/util.py | 462 | def _get_unique_seeds_per_chain(integers_fn): | CODE |
| LOW | pymc/util.py | 493 | def get_value_vars_from_user_vars(vars: Variable | Sequence[Variable], model) -> list[Variable]: | CODE |
| LOW | pymc/util.py | 554 | def random_generator_from_state(state: RandomGeneratorState) -> np.random.Generator: | CODE |
| LOW | pymc/initial_point.py | 71 | def make_initial_point_fns_per_chain( | CODE |
| LOW | pymc/initial_point.py | 204 | def non_support_point_ancestors(value): | CODE |
| LOW | pymc/initial_point.py | 218 | def make_initial_point_expression( | CODE |
| LOW | pymc/model_graph.py | 58 | def create_plate_label_without_dim_length( | CODE |
| LOW | pymc/model_graph.py | 67 | def create_plate_label_with_dim_length( | CODE |
| LOW | pymc/model_graph.py | 777 | def _create_mermaid_node_name(name: str) -> str: | CODE |
| LOW | pymc/testing.py | 259 | def create_dist_from_paramdomains( | CODE |
| LOW | pymc/testing.py | 283 | def find_invalid_scalar_params( | CODE |
| LOW | pymc/testing.py | 359 | def scipy_logp_with_scipy_args(**args): | CODE |
| LOW | pymc/testing.py | 754 | def check_selfconsistency_discrete_logcdf( | CODE |
| LOW | pymc/testing.py | 791 | def check_selfconsistency_icdf( | CODE |
| LOW | pymc/testing.py | 837 | def assert_support_point_is_expected(model, expected, check_finite_logp=True): | CODE |
| LOW | pymc/testing.py | 911 | def partially_deterministic_continuous_random_tester( | CODE |
| LOW⚡ | pymc/testing.py | 1107 | def check_pymc_draws_match_reference(self): | CODE |
| LOW⚡ | pymc/testing.py | 1114 | def check_pymc_draws_match_reference_not_numba(self): | CODE |
| LOW⚡ | pymc/testing.py | 1123 | def check_pymc_params_match_rv_op(self): | CODE |
| LOW | pymc/testing.py | 1183 | def seeded_scipy_distribution_builder(dist_name: str) -> Callable: | CODE |
| LOW | pymc/testing.py | 1187 | def seeded_numpy_distribution_builder(dist_name: str) -> Callable: | CODE |
| LOW | pymc/testing.py | 1301 | def mock_sample_setup_and_teardown(): | CODE |
| LOW | pymc/testing.py | 1358 | def equal_computations_up_to_root( | CODE |
| LOW | pymc/printing.py | 210 | def str_for_potential_or_deterministic( | CODE |
| LOW | pymc/printing.py | 365 | def _register_ipython_pretty_printers(): | CODE |
| LOW | pymc/backends/arviz.py | 96 | def dict_to_dataset_drop_incompatible_coords( | CODE |
| LOW | pymc/backends/arviz.py | 219 | def coords_and_dims_for_inferencedata(model: BaseModel) -> tuple[dict[str, Any], dict[str, Any]]: | CODE |
| LOW | pymc/backends/arviz.py | 471 | def posterior_predictive_to_xarray(self): | CODE |
| LOW | pymc/backends/arviz.py | 689 | def predictions_to_inference_data( | CODE |
| LOW | pymc/backends/arviz.py | 795 | def apply_function_over_dataset( | CODE |
| LOW | pymc/backends/mcbackend.py | 63 | def get_variables_and_point_fn( | CODE |
| LOW | pymc/backends/mcbackend.py | 217 | def make_runmeta_and_point_fn( | CODE |
| LOW | pymc/backends/zarr.py | 261 | def get_initial_fill_value_and_codec( | CODE |
| LOW | pymc/backends/zarr.py | 604 | def init_sampling_state_group(self, tune: int, chains: int): | CODE |
| LOW | pymc/sampling/jax.py | 87 | def _replace_shared_variables(graph: list[TensorVariable]) -> list[TensorVariable]: | CODE |
| LOW | pymc/sampling/jax.py | 186 | def _get_batched_jittered_initial_points( | CODE |
| LOW | pymc/sampling/mcmc.py | 100 | def _nutpie_meets_min_version() -> bool: | CODE |
| LOW | pymc/sampling/forward.py | 189 | def _maybe_warn_implicit_freeze( | CODE |
| LOW | pymc/sampling/forward.py | 262 | def compile_forward_sampling_function( | CODE |
| LOW | pymc/sampling/forward.py | 469 | def observed_dependent_deterministics(model: BaseModel, extra_observeds=None): | CODE |
| LOW | pymc/sampling/forward.py | 607 | def sample_posterior_predictive( | CODE |
| LOW | pymc/sampling/forward.py | 626 | def sample_posterior_predictive( | CODE |
| LOW | pymc/sampling/forward.py | 644 | def sample_posterior_predictive( | CODE |
| LOW | pymc/sampling/parallel.py | 88 | def _initialize_multiprocessing_context( | CODE |
| LOW | pymc/logprob/transforms.py | 215 | def measurable_transform_logprob(op: MeasurableTransform, values, *inputs, **kwargs): | CODE |
| LOW | pymc/logprob/transforms.py | 269 | def measurable_transform_logcdf(op: MeasurableTransform, value, *inputs): | CODE |
| LOW | pymc/logprob/transforms.py | 320 | def measurable_transform_icdf(op: MeasurableTransform, value, *inputs): | CODE |
| LOW | pymc/logprob/transforms.py | 365 | def measurable_reciprocal_to_power(fgraph, node): | CODE |
| LOW | pymc/logprob/transforms.py | 375 | def measurable_sqrt_sqr_to_power(fgraph, node): | CODE |
| LOW | pymc/logprob/transforms.py | 390 | def measurable_div_to_product(fgraph, node): | CODE |
| LOW | pymc/logprob/transforms.py | 411 | def measurable_neg_to_product(fgraph, node): | CODE |
| LOW | pymc/logprob/transforms.py | 431 | def measurable_special_log_to_log(fgraph, node): | CODE |
| LOW | pymc/logprob/transforms.py | 451 | def measurable_special_exp_to_exp(fgraph, node): | CODE |
| LOW | pymc/logprob/transforms.py | 466 | def measurable_power_exponent_to_exp(fgraph, node): | CODE |
| LOW | pymc/logprob/transforms.py | 507 | def find_measurable_transforms(fgraph: FunctionGraph, node: Apply) -> list[Variable] | None: | CODE |
| 909 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 1 | # Copyright 2026 - present The PyMC Developers | COMMENT |
| LOW | pymc/func_utils.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/_deprecations.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/pytensorf.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/util.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/util.py | 601 | # If seed is a numpy.random.Generator or numpy.random.BitGenerator, | COMMENT |
| LOW | pymc/__init__.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/initial_point.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/blocking.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/exceptions.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/math.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/model_graph.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/vartypes.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/testing.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/data.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/printing.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/progress_bar/__init__.py | 1 | # Copyright 2025 - present The PyMC Developers | COMMENT |
| LOW | pymc/progress_bar/marimo_progress_css.py | 1 | # Copyright 2026 - present The PyMC Developers | COMMENT |
| LOW | pymc/progress_bar/progress.py | 1 | # Copyright 2025 - present The PyMC Developers | COMMENT |
| LOW | pymc/progress_bar/marimo_progress.py | 1 | # Copyright 2025 - present The PyMC Developers | COMMENT |
| LOW | pymc/progress_bar/rich_progress.py | 1 | # Copyright 2025 - present The PyMC Developers | COMMENT |
| LOW | pymc/backends/__init__.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/backends/arviz.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/backends/ndarray.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/backends/mcbackend.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/backends/zarr.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/backends/base.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/backends/report.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/sampling/deterministic.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/sampling/population.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/sampling/__init__.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/sampling/jax.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/sampling/mcmc.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/sampling/forward.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/sampling/parallel.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/abstract.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/abstract.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/arithmetic.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/arithmetic.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/transforms.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/transforms.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/binary.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/mixture.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/mixture.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/transform_value.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/rewriting.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/rewriting.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/checks.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/checks.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/censoring.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/censoring.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/order.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/order.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/__init__.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/__init__.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/switch.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/switch.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/tensor.py | 1 | # Copyright 2024 - present The PyMC Developers | COMMENT |
| LOW | pymc/logprob/tensor.py | 21 | # in the Software without restriction, including without limitation the rights | COMMENT |
| LOW | pymc/logprob/tensor.py | 501 | # collapses the support onto two points instead of partitioning it. | COMMENT |
| 248 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/__init__.py | 49 | CODE | |
| LOW | pymc/__init__.py | 49 | CODE | |
| LOW | pymc/__init__.py | 49 | CODE | |
| LOW | pymc/__init__.py | 49 | CODE | |
| LOW | pymc/__init__.py | 49 | CODE | |
| LOW | pymc/__init__.py | 49 | CODE | |
| LOW | pymc/__init__.py | 49 | CODE | |
| LOW | pymc/__init__.py | 51 | CODE | |
| LOW | pymc/__init__.py | 52 | CODE | |
| LOW | pymc/__init__.py | 53 | CODE | |
| LOW | pymc/__init__.py | 54 | CODE | |
| LOW | pymc/__init__.py | 55 | CODE | |
| LOW | pymc/__init__.py | 56 | CODE | |
| LOW | pymc/__init__.py | 57 | CODE | |
| LOW | pymc/__init__.py | 57 | CODE | |
| LOW | pymc/__init__.py | 58 | CODE | |
| LOW | pymc/__init__.py | 58 | CODE | |
| LOW | pymc/__init__.py | 58 | CODE | |
| LOW | pymc/__init__.py | 59 | CODE | |
| LOW | pymc/__init__.py | 60 | CODE | |
| LOW | pymc/__init__.py | 61 | CODE | |
| LOW | pymc/__init__.py | 62 | CODE | |
| LOW | pymc/__init__.py | 63 | CODE | |
| LOW | pymc/__init__.py | 64 | CODE | |
| LOW | pymc/__init__.py | 65 | CODE | |
| LOW | pymc/blocking.py | 17 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| LOW | pymc/math.py | 25 | CODE | |
| 309 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | pymc/_version.py | 178 | except OSError: | CODE |
| HIGH | pymc/_version.py | 652 | except NotThisMethod: | CODE |
| HIGH | pymc/_version.py | 671 | except NotThisMethod: | CODE |
| HIGH | pymc/_version.py | 677 | except NotThisMethod: | CODE |
| HIGH | pymc/util.py | 315 | except TypeError: | CODE |
| HIGH | pymc/util.py | 407 | except (TypeError, BlockModelAccessError): | CODE |
| HIGH | pymc/printing.py | 378 | except AttributeError: | CODE |
| HIGH | pymc/backends/__init__.py | 191 | except ImportError: | CODE |
| HIGH | pymc/backends/zarr.py | 579 | except KeyError: | CODE |
| HIGH | pymc/backends/zarr.py | 774 | except KeyError: | CODE |
| HIGH | pymc/backends/base.py | 409 | except (ValueError, TypeError): # Passed variable or variable name. | CODE |
| HIGH | pymc/backends/base.py | 302 | except ValueError: | CODE |
| HIGH | pymc/sampling/mcmc.py | 1500 | except KeyboardInterrupt: | CODE |
| HIGH | pymc/sampling/mcmc.py | 1689 | except KeyboardInterrupt: | CODE |
| HIGH | pymc/sampling/forward.py | 1295 | except KeyboardInterrupt: | CODE |
| HIGH | pymc/sampling/parallel.py | 213 | except KeyboardInterrupt: | CODE |
| HIGH | pymc/sampling/parallel.py | 454 | except Exception: | CODE |
| HIGH | pymc/sampling/parallel.py | 392 | except Exception: | CODE |
| HIGH | pymc/logprob/transforms.py | 403 | except NotScalarConstantError: | CODE |
| HIGH | pymc/step_methods/metropolis.py | 531 | except MissingInputError: | CODE |
| HIGH | pymc/step_methods/metropolis.py | 664 | except MissingInputError: | CODE |
| HIGH | pymc/step_methods/metropolis.py | 841 | except MissingInputError: | CODE |
| HIGH | pymc/smc/parallel.py | 92 | except KeyboardInterrupt: | CODE |
| HIGH | pymc/smc/parallel.py | 290 | except Exception: | CODE |
| HIGH | pymc/smc/parallel.py | 207 | except Exception: | CODE |
| HIGH | pymc/variational/inference.py | 102 | except KeyboardInterrupt: | CODE |
| HIGH | pymc/variational/inference.py | 220 | except IndexError: | CODE |
| HIGH | pymc/variational/inference.py | 276 | except IndexError: | CODE |
| HIGH | pymc/distributions/simulator.py | 333 | except Exception: | CODE |
| HIGH | pymc/distributions/simulator.py | 358 | except Exception: | CODE |
| HIGH | pymc/distributions/continuous.py | 188 | except NotScalarConstantError: | CODE |
| HIGH | pymc/distributions/continuous.py | 196 | except NotScalarConstantError: | CODE |
| HIGH | pymc/distributions/truncated.py | 83 | except NotImplementedError: | CODE |
| HIGH | pymc/distributions/truncated.py | 135 | except NotImplementedError: | CODE |
| HIGH | tests/sampling/test_mcmc_external.py | 459 | except Exception: | CODE |
| HIGH | tests/variational/test_inference.py | 294 | except opvi.NotImplementedInference: | CODE |
| HIGH | tests/variational/test_inference.py | 301 | except opvi.NotImplementedInference: | CODE |
| HIGH | tests/distributions/test_multivariate.py | 143 | except AttributeError: | CODE |
| HIGH | tests/distributions/test_multivariate.py | 147 | except AttributeError: | CODE |
| HIGH | tests/distributions/test_multivariate.py | 325 | except ValueError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .gitpod.yml | 8 | # Create an empty object for .vscode/settings.json if the file doesn't exist | COMMENT |
| MEDIUM | pymc/pytensorf.py | 977 | # Create an update mapping of RandomVariable's RNG so that it is automatically | COMMENT |
| MEDIUM | pymc/_version.py | 7 | # This file is released into the public domain. | COMMENT |
| MEDIUM | pymc/backends/mcbackend.py | 198 | # Create a NumPyChain for the sliced data | COMMENT |
| MEDIUM⚡ | pymc/backends/zarr.py | 513 | # Create the posterior that includes warmup draws | COMMENT |
| MEDIUM⚡ | pymc/backends/zarr.py | 522 | # Create the unconstrained posterior group that includes warmup draws | COMMENT |
| MEDIUM⚡ | pymc/backends/zarr.py | 532 | # Create the sample stats that include warmup draws | COMMENT |
| MEDIUM | pymc/distributions/multivariate.py | 1394 | # Define a new MvNormal with the given covariance | COMMENT |
| MEDIUM | pymc/distributions/multivariate.py | 1609 | # Define the vector of fixed standard deviations | COMMENT |
| MEDIUM | pymc/distributions/multivariate.py | 1614 | # Define a new MvNormal with the given correlation matrix | COMMENT |
| MEDIUM | pymc/distributions/simulator.py | 275 | # Create a new simulatorRV with identical inputs as the original one | STRING |
| MEDIUM | pymc/distributions/timeseries.py | 560 | # Create an AR of order 3, with a constant term | COMMENT |
| MEDIUM | tests/test_pytensorf.py | 223 | # Create the various inputs to the function | COMMENT |
| MEDIUM | tests/logprob/test_transform_value.py | 42 | # Create a dummy Op that just returns the two inputs | COMMENT |
| MEDIUM | tests/logprob/test_transform_value.py | 559 | # Create an unrolled scan graph as reference | COMMENT |
| MEDIUM | tests/ode/test_ode.py | 32 | # Create an ODe to integrate | COMMENT |
| MEDIUM | tests/ode/test_ode.py | 59 | # Create an ODe to integrate | COMMENT |
| MEDIUM⚡ | tests/model/test_core.py | 640 | # Create the various inputs to the function | COMMENT |
| MEDIUM⚡ | tests/model/test_core.py | 646 | # Create a fake model and fake distribution to be used for the test | COMMENT |
| MEDIUM⚡ | tests/model/test_core.py | 650 | # Create the testval attribute simply for the sake of model testing | COMMENT |
| MEDIUM | tests/variational/test_approximations.py | 53 | # Create a model for test | COMMENT |
| MEDIUM | tests/distributions/test_distribution.py | 243 | # Create a SymbolicRandomVariable type with extended_signature | COMMENT |
| MEDIUM | docs/source/conf.py | 7 | # This file is execfile()d with the current directory set to its | COMMENT |
| MEDIUM | scripts/generate_pip_deps_from_conda.py | 127 | "# This file is auto-generated by scripts/generate_pip_deps_from_conda.py, " | CODE |
| MEDIUM | scripts/publish_release_notes_to_discourse.py | 112 | # Create the topic data | STRING |
| MEDIUM | .github/release.yml | 1 | # This file contains configuration for the automatic generation of release notes in GitHub. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/pytensorf.py | 89 | CODE | |
| LOW | pymc/_version.py | 156 | CODE | |
| LOW | pymc/_version.py | 603 | CODE | |
| LOW | pymc/initial_point.py | 218 | CODE | |
| LOW | pymc/math.py | 457 | CODE | |
| LOW | pymc/model_graph.py | 176 | CODE | |
| LOW | pymc/model_graph.py | 420 | CODE | |
| LOW | pymc/model_graph.py | 781 | CODE | |
| LOW | pymc/model_graph.py | 269 | CODE | |
| LOW | pymc/model_graph.py | 299 | CODE | |
| LOW | pymc/testing.py | 311 | CODE | |
| LOW | pymc/testing.py | 420 | CODE | |
| LOW | pymc/testing.py | 537 | CODE | |
| LOW | pymc/testing.py | 655 | CODE | |
| LOW | pymc/printing.py | 288 | CODE | |
| LOW | pymc/printing.py | 343 | CODE | |
| LOW | pymc/printing.py | 390 | CODE | |
| LOW | pymc/backends/arviz.py | 96 | CODE | |
| LOW | pymc/backends/zarr.py | 711 | CODE | |
| LOW | pymc/sampling/population.py | 393 | CODE | |
| LOW | pymc/sampling/population.py | 227 | CODE | |
| LOW | pymc/sampling/mcmc.py | 257 | CODE | |
| LOW | pymc/sampling/mcmc.py | 621 | CODE | |
| LOW | pymc/sampling/mcmc.py | 1233 | CODE | |
| LOW | pymc/sampling/mcmc.py | 1587 | CODE | |
| LOW | pymc/sampling/mcmc.py | 1696 | CODE | |
| LOW | pymc/sampling/mcmc.py | 1760 | CODE | |
| LOW | pymc/sampling/forward.py | 644 | CODE | |
| LOW | pymc/sampling/parallel.py | 88 | CODE | |
| LOW | pymc/sampling/parallel.py | 249 | CODE | |
| LOW | pymc/logprob/transforms.py | 269 | CODE | |
| LOW | pymc/logprob/transforms.py | 320 | CODE | |
| LOW | pymc/logprob/binary.py | 44 | CODE | |
| LOW | pymc/logprob/censoring.py | 344 | CODE | |
| LOW | pymc/logprob/order.py | 256 | CODE | |
| LOW | pymc/step_methods/slicer.py | 127 | CODE | |
| LOW | pymc/step_methods/state.py | 30 | CODE | |
| LOW | pymc/step_methods/hmc/quadpotential.py | 539 | CODE | |
| LOW | pymc/gp/cov.py | 236 | CODE | |
| LOW | pymc/gp/cov.py | 264 | CODE | |
| LOW | pymc/model/fgraph.py | 139 | CODE | |
| LOW | pymc/model/fgraph.py | 301 | CODE | |
| LOW | pymc/model/core.py | 982 | CODE | |
| LOW | pymc/model/core.py | 1434 | CODE | |
| LOW | pymc/model/core.py | 1940 | CODE | |
| LOW | pymc/smc/sampling.py | 42 | CODE | |
| LOW | pymc/smc/sampling.py | 423 | CODE | |
| LOW | pymc/smc/parallel.py | 366 | CODE | |
| LOW | pymc/variational/opvi.py | 734 | CODE | |
| LOW | pymc/variational/minibatch_rv.py | 57 | CODE | |
| LOW | pymc/variational/inference.py | 189 | CODE | |
| LOW | pymc/variational/inference.py | 230 | CODE | |
| LOW | pymc/variational/approximations.py | 244 | CODE | |
| LOW | pymc/distributions/mixture.py | 293 | CODE | |
| LOW | pymc/distributions/custom.py | 453 | CODE | |
| LOW | pymc/distributions/shape_utils.py | 129 | CODE | |
| LOW | pymc/distributions/shape_utils.py | 147 | CODE | |
| LOW | pymc/distributions/distribution.py | 789 | CODE | |
| LOW | pymc/distributions/simulator.py | 146 | CODE | |
| LOW | tests/sampler_fixtures.py | 45 | CODE | |
| 12 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/func_utils.py | 28 | __all__ = ["find_constrained_prior"] | CODE |
| LOW | pymc/pytensorf.py | 64 | __all__ = [ | CODE |
| LOW | pymc/blocking.py | 31 | __all__ = ["DictToArrayBijection"] | CODE |
| LOW | pymc/exceptions.py | 15 | __all__ = [ | CODE |
| LOW | pymc/math.py | 150 | __all__ = [ | CODE |
| LOW | pymc/vartypes.py | 15 | __all__ = [ | CODE |
| LOW | pymc/data.py | 43 | __all__ = [ | CODE |
| LOW | pymc/printing.py | 40 | __all__ = [ | CODE |
| LOW | pymc/progress_bar/progress.py | 483 | def _set_task_elapsed(self, task_id: int, elapsed_seconds: float) -> None: | CODE |
| LOW | pymc/backends/__init__.py | 124 | __all__ = ["predictions_to_inference_data", "to_inference_data"] | CODE |
| LOW | pymc/backends/base.py | 39 | logger = logging.getLogger(__name__) | CODE |
| LOW | pymc/backends/report.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | pymc/sampling/jax.py | 60 | logger = logging.getLogger(__name__) | CODE |
| LOW | pymc/sampling/mcmc.py | 120 | __all__ = [ | CODE |
| LOW | pymc/sampling/parallel.py | 52 | logger = logging.getLogger(__name__) | CODE |
| LOW | pymc/step_methods/metropolis.py | 57 | __all__ = [ | CODE |
| LOW | pymc/step_methods/arraystep.py | 26 | __all__ = ["ArrayStep", "ArrayStepShared", "metrop_select"] | CODE |
| LOW | pymc/step_methods/slicer.py | 33 | __all__ = ["Slice"] | CODE |
| LOW | pymc/step_methods/hmc/base_hmc.py | 44 | logger = logging.getLogger(__name__) | CODE |
| LOW | pymc/step_methods/hmc/nuts.py | 34 | __all__ = ["NUTS"] | CODE |
| LOW | pymc/step_methods/hmc/quadpotential.py | 42 | __all__ = [ | CODE |
| LOW | pymc/step_methods/hmc/hmc.py | 32 | __all__ = ["HamiltonianMC"] | CODE |
| LOW | pymc/gp/gp.py | 39 | __all__ = ["TP", "Latent", "LatentKron", "Marginal", "MarginalApprox", "MarginalKron"] | CODE |
| LOW | pymc/gp/cov.py | 31 | __all__ = [ | CODE |
| LOW | pymc/gp/mean.py | 17 | __all__ = ["Constant", "Linear", "Zero"] | CODE |
| LOW | pymc/model/core.py | 89 | __all__ = [ | CODE |
| LOW | pymc/smc/sampling.py | 39 | logger = logging.getLogger(__name__) | CODE |
| LOW | pymc/smc/parallel.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | pymc/variational/updates.py | 121 | __all__ = [ | CODE |
| LOW | pymc/variational/opvi.py | 94 | __all__ = ["Approximation", "Group", "ObjectiveFunction", "Operator", "TestFunction"] | STRING |
| LOW | pymc/variational/callbacks.py | 21 | __all__ = ["Callback", "CheckParametersConvergence", "Tracker"] | CODE |
| LOW | pymc/variational/test_functions.py | 20 | __all__ = ["rbf"] | CODE |
| LOW | pymc/variational/inference.py | 32 | logger = logging.getLogger(__name__) | CODE |
| LOW | pymc/variational/inference.py | 34 | __all__ = [ | CODE |
| LOW | pymc/variational/stein.py | 24 | __all__ = ["Stein"] | CODE |
| LOW | pymc/variational/operators.py | 30 | __all__ = ["KL", "KSD"] | CODE |
| LOW | pymc/variational/approximations.py | 37 | __all__ = ["Empirical", "FullRank", "MeanField", "sample_approx"] | CODE |
| LOW | pymc/tuning/scaling.py | 24 | __all__ = ["find_hessian", "guess_scaling", "trace_cov"] | CODE |
| LOW | pymc/tuning/starting.py | 61 | __all__ = ["find_MAP"] | CODE |
| LOW | pymc/distributions/transforms.py | 36 | __all__ = [ | CODE |
| LOW | pymc/distributions/mixture.py | 45 | __all__ = [ | CODE |
| LOW | pymc/distributions/shape_utils.py | 35 | __all__ = [ | CODE |
| LOW | pymc/distributions/discrete.py | 57 | __all__ = [ | CODE |
| LOW | pymc/distributions/__init__.py | 118 | __all__ = [ | CODE |
| LOW | pymc/distributions/distribution.py | 66 | __all__ = [ | CODE |
| LOW | pymc/distributions/multivariate.py | 89 | __all__ = [ | CODE |
| LOW | pymc/distributions/simulator.py | 29 | __all__ = ["Simulator"] | CODE |
| LOW | pymc/distributions/continuous.py | 99 | __all__ = [ | CODE |
| LOW | pymc/distributions/timeseries.py | 50 | __all__ = [ | CODE |
| LOW | pymc/distributions/moments/__init__.py | 19 | __all__ = ["mean"] | CODE |
| LOW | pymc/distributions/moments/means.py | 86 | __all__ = ["mean"] | CODE |
| LOW | pymc/stats/convergence.py | 33 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/model_graph.py | 658 | CODE | |
| LOW | pymc/backends/arviz.py | 613 | CODE | |
| LOW | pymc/backends/arviz.py | 291 | CODE | |
| LOW | pymc/sampling/deterministic.py | 53 | CODE | |
| LOW | pymc/sampling/jax.py | 495 | CODE | |
| LOW | pymc/sampling/mcmc.py | 555 | CODE | |
| LOW | pymc/sampling/mcmc.py | 588 | CODE | |
| LOW | pymc/sampling/mcmc.py | 621 | CODE | |
| LOW | pymc/sampling/mcmc.py | 1760 | CODE | |
| LOW | pymc/sampling/forward.py | 485 | CODE | |
| LOW | pymc/sampling/forward.py | 496 | CODE | |
| LOW | pymc/sampling/forward.py | 506 | CODE | |
| LOW | pymc/sampling/forward.py | 607 | CODE | |
| LOW | pymc/sampling/forward.py | 626 | CODE | |
| LOW | pymc/sampling/forward.py | 644 | CODE | |
| LOW | pymc/ode/ode.py | 208 | CODE | |
| LOW | pymc/step_methods/metropolis.py | 157 | CODE | |
| LOW | pymc/step_methods/metropolis.py | 455 | CODE | |
| LOW | pymc/step_methods/metropolis.py | 915 | CODE | |
| LOW | pymc/step_methods/metropolis.py | 1084 | CODE | |
| LOW | pymc/step_methods/slicer.py | 87 | CODE | |
| LOW | pymc/step_methods/hmc/base_hmc.py | 82 | CODE | |
| LOW | pymc/step_methods/hmc/quadpotential.py | 216 | CODE | |
| LOW | pymc/dims/distributions/transforms.py | 167 | CODE | |
| LOW | pymc/smc/sampling.py | 42 | CODE | |
| LOW | pymc/variational/opvi.py | 207 | CODE | |
| LOW | pymc/variational/opvi.py | 318 | CODE | |
| LOW | pymc/variational/inference.py | 695 | CODE | |
| LOW | pymc/tuning/starting.py | 177 | CODE | |
| LOW | pymc/distributions/custom.py | 98 | CODE | |
| LOW | pymc/distributions/custom.py | 214 | CODE | |
| LOW | pymc/distributions/custom.py | 708 | CODE | |
| LOW | pymc/distributions/custom.py | 765 | CODE | |
| LOW | pymc/distributions/simulator.py | 146 | CODE | |
| LOW | pymc/distributions/continuous.py | 372 | CODE | |
| LOW | pymc/distributions/continuous.py | 433 | CODE | |
| LOW | pymc/distributions/continuous.py | 935 | CODE | |
| LOW | pymc/distributions/continuous.py | 1849 | CODE | |
| LOW | pymc/distributions/continuous.py | 2962 | CODE | |
| LOW | pymc/stats/log_density.py | 129 | CODE | |
| LOW | tests/sampling/test_parallel.py | 262 | CODE | |
| LOW | tests/logprob/test_transforms.py | 97 | CODE | |
| LOW | tests/step_methods/test_state.py | 63 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/util.py | 320 | except Exception: | CODE |
| LOW | pymc/util.py | 470 | except Exception: | CODE |
| LOW | pymc/printing.py | 68 | except Exception: | CODE |
| LOW | pymc/sampling/population.py | 198 | except Exception: | CODE |
| LOW | pymc/sampling/population.py | 222 | except Exception: | CODE |
| LOW | pymc/sampling/population.py | 266 | except Exception: | CODE |
| LOW | pymc/sampling/parallel.py | 196 | except Exception: | CODE |
| LOW | pymc/sampling/parallel.py | 387 | except Exception: | CODE |
| LOW | pymc/sampling/parallel.py | 392 | except Exception: | CODE |
| LOW | pymc/sampling/parallel.py | 454 | except Exception: | CODE |
| MEDIUM | pymc/sampling/parallel.py | 384 | def _send(self, msg, *args): | CODE |
| LOW | pymc/model/core.py | 1492 | except Exception as exc: | STRING |
| LOW | pymc/model/core.py | 1545 | except Exception as exc: | STRING |
| LOW | pymc/model/core.py | 2497 | except Exception as e: | CODE |
| LOW | pymc/smc/parallel.py | 203 | except Exception: | CODE |
| LOW | pymc/smc/parallel.py | 207 | except Exception: | CODE |
| LOW | pymc/smc/parallel.py | 290 | except Exception: | CODE |
| LOW | pymc/variational/callbacks.py | 144 | except Exception: | CODE |
| LOW | pymc/distributions/custom.py | 844 | except Exception: | CODE |
| LOW | pymc/distributions/shape_utils.py | 79 | except Exception: | CODE |
| LOW⚡ | pymc/distributions/simulator.py | 333 | except Exception: | CODE |
| LOW⚡ | pymc/distributions/simulator.py | 358 | except Exception: | CODE |
| LOW⚡ | tests/sampling/test_mcmc_external.py | 459 | except Exception: | CODE |
| LOW | tests/model/test_core.py | 570 | except Exception: | CODE |
| LOW | scripts/publish_release_notes_to_discourse.py | 43 | except Exception as e: | CODE |
| MEDIUM | scripts/publish_release_notes_to_discourse.py | 44 | print("Error fetching categories") | CODE |
| MEDIUM | scripts/publish_release_notes_to_discourse.py | 143 | print(f"Error details: {error_data}") | STRING |
| LOW | scripts/publish_release_notes_to_discourse.py | 144 | except Exception: | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/_version.py | 26 | # each be defined on a line of their own. _version.py will just call | COMMENT |
| LOW | pymc/logprob/order.py | 244 | # WeibullBetaRV is a SymbolicRandomVariable, we can't simply pass arguments of a different type | STRING |
| MEDIUM | pymc/logprob/order.py | 324 | # Make probs explicit to facilitate logic below | COMMENT |
| MEDIUM | pymc/model/core.py | 337 | """A metaclass in order to apply a model's context during `Model.__init__``.""" | STRING |
| MEDIUM | pymc/model/core.py | 1106 | # to a shared variable. This is allowed, but a little less robust. | COMMENT |
| LOW | pymc/distributions/mixture.py | 343 | # so we can just pass the inputs of the first component | COMMENT |
| LOW | pymc/distributions/custom.py | 270 | # If it's NoneConst, just use that as the dummy | COMMENT |
| LOW | benchmarks/benchmarks/benchmarks.py | 301 | # If we know one of the parameter values, we can simply pass the value. | COMMENT |
| MEDIUM | .github/workflows/tests.yml | 298 | token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads | CODE |
| MEDIUM | .github/workflows/tests.yml | 355 | token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads | CODE |
| MEDIUM | .github/workflows/tests.yml | 405 | token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/pytensorf.py | 834 | # Check if any shared output corresponds to the RNG | COMMENT |
| LOW | pymc/testing.py | 1364 | # Check if graphs are equivalent even if root variables have distinct identities | COMMENT |
| LOW | pymc/logprob/transforms.py | 397 | # Check if numerator is 1 | COMMENT |
| LOW | pymc/logprob/order.py | 292 | # Check if we have an Argmin | COMMENT |
| LOW | pymc/logprob/linalg.py | 81 | # Check if the static shape already reveals a non-square matrix, | COMMENT |
| LOW | pymc/dims/distributions/core.py | 74 | # Check if we have a transposition instead | COMMENT |
| LOW | pymc/gp/cov.py | 204 | # Check if all input_dim are the same in factor_list | COMMENT |
| LOW⚡ | pymc/distributions/simulator.py | 328 | # Check if callable returns TensorVariable with dummy inputs | COMMENT |
| LOW⚡ | pymc/distributions/simulator.py | 353 | # Check if callable returns TensorVariable with dummy inputs | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | pymc/variational/minibatch_rv.py | 94 | coef = total_size[0] if not NoneConst.equals(total_size[0]) else 1.0 | CODE |
| HIGH | pymc/variational/minibatch_rv.py | 96 | coefs = [t / shape[i] for i, t in enumerate(total_size) if not NoneConst.equals(t)] | CODE |
| HIGH | tests/sampling/test_parallel.py | 287 | assert post1.equals(post2), (post1["x"].mean().item(), post2["x"].mean().item()) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | pymc/gp/hsgp_approx.py | 371 | # In this example the data lie between zero and one, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pymc/progress_bar/rich_progress.py | 129 | # Rich yields ~3-5 bulk Segments (e.g. "━━━━━" for completed, "━━━" for | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/model/fgraph.py | 345 | # We make sure to replace them by the first non-model variable | COMMENT |
| LOW | pymc/model/fgraph.py | 345 | # We make sure to replace them by the first non-model variable | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pymc/variational/opvi.py | 1614 | # TODO: add tests for include_transformed case | COMMENT |