Deep universal probabilistic programming with Python and PyTorch
This report presents the forensic synthetic code analysis of pyro-ppl/pyro, a Python project with 9,036 GitHub stars. SynthScan v2.0 examined 136,982 lines of code across 668 source files, recording 1658 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 14.7 places this repository in the Low 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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.
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.
The scanner identified 1658 distinct pattern matches across 16 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 58 | def _get_highest_specificity_marker(stage_marker): | CODE |
| LOW | tests/conftest.py | 86 | def pytest_collection_modifyitems(config, items): | CODE |
| LOW | tests/nn/conftest.py | 7 | def pytest_collection_modifyitems(items): | CODE |
| LOW | tests/nn/test_module.py | 76 | def test_svi_elbomodule_interface( | CODE |
| LOW | tests/nn/test_module.py | 139 | def test_local_param_global_behavior_fails(local_params): | CODE |
| LOW | tests/nn/test_module.py | 266 | def test_submodule_contains_torch_module(): | CODE |
| LOW | tests/nn/test_module.py | 273 | def test_hierarchy_prior_cached(): | CODE |
| LOW | tests/nn/test_module.py | 669 | def test_torch_serialize_attributes(local_params): | CODE |
| LOW | tests/nn/test_module.py | 692 | def test_torch_serialize_decorators(local_params): | CODE |
| LOW | tests/nn/test_module.py | 1016 | def get_position_indexing_modulelist_bnn(self) -> PositionIndexingModuleListBNN: | CODE |
| LOW | tests/nn/test_module.py | 1024 | def get_slice_indexing_modulelist_bnn(self) -> SliceIndexingModuleListBNN: | CODE |
| LOW | tests/nn/test_module.py | 1043 | def test_with_position_indexing(self) -> None: | CODE |
| LOW | tests/nn/test_module.py | 1055 | def test_with_position_indexing(self) -> None: | CODE |
| LOW | tests/nn/test_module.py | 1069 | def test_render_constrained_param(use_module_local_params): | CODE |
| LOW | tests/integration_tests/conftest.py | 7 | def pytest_collection_modifyitems(items): | CODE |
| LOW | tests/integration_tests/test_tracegraph_elbo.py | 51 | def test_elbo_reparameterized(self): | CODE |
| LOW | tests/integration_tests/test_tracegraph_elbo.py | 55 | def test_elbo_nonreparameterized(self): | CODE |
| LOW | tests/integration_tests/test_tracegraph_elbo.py | 121 | def test_elbo_reparameterized(self): | CODE |
| LOW | tests/integration_tests/test_tracegraph_elbo.py | 124 | def test_elbo_nonreparameterized_both_baselines(self): | CODE |
| LOW | tests/integration_tests/test_tracegraph_elbo.py | 135 | def test_elbo_nonreparameterized_decaying_baseline(self): | CODE |
| LOW | tests/integration_tests/test_tracegraph_elbo.py | 146 | def test_elbo_nonreparameterized_nn_baseline(self): | CODE |
| LOW | tests/integration_tests/test_tracegraph_elbo.py | 296 | def test_elbo_reparameterized(self): | CODE |
| LOW | tests/integration_tests/test_tracegraph_elbo.py | 299 | def test_elbo_nonreparameterized(self): | CODE |
| LOW | tests/integration_tests/test_tracegraph_elbo.py | 359 | def test_elbo_reparameterized(self): | CODE |
| LOW | tests/integration_tests/test_tracegraph_elbo.py | 362 | def test_elbo_nonreparameterized(self): | CODE |
| LOW | tests/integration_tests/test_tracegraph_elbo.py | 437 | def test_nested_iplate_in_elbo(self, n_steps=4000): | CODE |
| LOW | tests/integration_tests/test_tracegraph_elbo.py | 499 | def test_plate_in_elbo_with_superfluous_rvs(self): | CODE |
| LOW⚡ | …ts/integration_tests/test_conjugate_gaussian_models.py | 310 | def test_elbo_reparameterized_three_layers(self): | CODE |
| LOW⚡ | …ts/integration_tests/test_conjugate_gaussian_models.py | 317 | def test_elbo_reparameterized_four_layers(self): | CODE |
| LOW⚡ | …ts/integration_tests/test_conjugate_gaussian_models.py | 324 | def test_elbo_nonreparameterized_two_layers(self): | CODE |
| LOW⚡ | …ts/integration_tests/test_conjugate_gaussian_models.py | 330 | def test_elbo_nonreparameterized_three_layers(self): | CODE |
| LOW⚡ | …ts/integration_tests/test_conjugate_gaussian_models.py | 336 | def test_elbo_nonreparameterized_two_layers_model_permuted(self): | CODE |
| LOW⚡ | …ts/integration_tests/test_conjugate_gaussian_models.py | 346 | def test_elbo_nonreparameterized_three_layers_model_permuted(self): | CODE |
| LOW⚡ | …ts/integration_tests/test_conjugate_gaussian_models.py | 352 | def calculate_variational_targets(self): | CODE |
| LOW | tests/poutine/test_poutines.py | 183 | def test_block_full_hide_expose(self): | CODE |
| LOW | tests/poutine/test_poutines.py | 209 | def test_block_partial_expose(self): | CODE |
| LOW | tests/poutine/test_poutines.py | 454 | def test_random_module_prior_dict(self): | CODE |
| LOW | tests/poutine/test_poutines.py | 583 | def test_stack_overwrite_behavior(self): | CODE |
| LOW | tests/poutine/test_poutines.py | 627 | def test_stack_overwrite_behavior(self): | CODE |
| LOW | tests/poutine/test_poutines.py | 774 | def test_sample_site_equalization(self): | CODE |
| LOW | tests/poutine/test_poutines.py | 812 | def test_condition_by_equalize(loc_x, scale_x, loc_y, scale_y, keep_dist): | CODE |
| LOW | tests/poutine/test_poutines.py | 880 | def test_replay_enumerate_poutine(depth, first_available_dim): | CODE |
| LOW | tests/poutine/test_poutines.py | 921 | def test_plate_preserves_has_rsample(has_rsample, depth): | CODE |
| LOW | tests/poutine/test_poutines.py | 932 | def test_plate_error_on_enter(): | CODE |
| LOW | tests/poutine/test_poutines.py | 957 | def test_decorator_interface_primitives(): | CODE |
| LOW | tests/poutine/test_poutines.py | 987 | def test_decorator_interface_queue(): | CODE |
| LOW | tests/poutine/test_poutines.py | 1008 | def test_method_decorator_interface_condition(): | CODE |
| LOW⚡ | tests/poutine/test_poutines.py | 1024 | def test_trace_log_prob_err_msg(): | CODE |
| LOW⚡ | tests/poutine/test_poutines.py | 1034 | def test_trace_log_prob_sum_err_msg(): | CODE |
| LOW⚡ | tests/poutine/test_poutines.py | 1044 | def test_trace_score_parts_err_msg(): | CODE |
| LOW | tests/poutine/conftest.py | 7 | def pytest_collection_modifyitems(items): | CODE |
| LOW | tests/poutine/test_trace_struct.py | 56 | def test_connectivity_on_removal(edges): | CODE |
| LOW | tests/poutine/test_counterfactual.py | 28 | def test_counterfactual_query(intervene, observe, flip): | CODE |
| LOW | tests/poutine/test_counterfactual.py | 81 | def test_plate_duplication_smoke(): | CODE |
| LOW | tests/poutine/test_mapdata.py | 177 | def test_model_guide_mismatch(behavior, model_size, guide_size, model): | CODE |
| LOW | tests/optim/conftest.py | 7 | def pytest_collection_modifyitems(items): | CODE |
| LOW | tests/optim/test_optim.py | 245 | def test_dctadam_param_subsample(): | CODE |
| LOW | tests/optim/test_optim.py | 281 | def test_name_preserved_by_to_pyro_module(): | CODE |
| LOW | tests/optim/test_optim.py | 440 | def test_centered_clipped_adam(plot): | CODE |
| LOW | tests/optim/test_multi.py | 75 | def test_multi_optimizer_disjoint_ok(): | CODE |
| 510 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tutorial/source/search_inference.py | 0 | exact inference by enumerating over all possible executions | STRING |
| HIGH | examples/rsa/search_inference.py | 0 | exact inference by enumerating over all possible executions | STRING |
| HIGH | pyro/contrib/oed/search.py | 0 | exact inference by enumerating over all possible executions | STRING |
| HIGH | tests/contrib/test_minipyro.py | 0 | assert that inference works without warnings or errors. | STRING |
| HIGH | tests/infer/test_valid_models.py | 0 | assert that inference works without warnings or errors. | STRING |
| HIGH | tests/infer/mcmc/test_valid_models.py | 0 | assert that inference works without warnings or errors. | STRING |
| HIGH | pyro/contrib/timeseries/lgssm.py | 0 | get the :class:`~pyro.distributions.gaussianhmm` distribution that corresponds to :class:`genericlgssmwithgpnoisemodel`. | STRING |
| HIGH | pyro/contrib/timeseries/gp.py | 0 | get the :class:`~pyro.distributions.gaussianhmm` distribution that corresponds to :class:`genericlgssmwithgpnoisemodel`. | STRING |
| HIGH | pyro/contrib/timeseries/lgssmgp.py | 0 | get the :class:`~pyro.distributions.gaussianhmm` distribution that corresponds to :class:`genericlgssmwithgpnoisemodel`. | STRING |
| HIGH | pyro/contrib/timeseries/lgssm.py | 0 | :param torch.tensor targets: a 2-dimensional tensor of real-valued targets of shape ``(t, obs_dim)``, where ``t`` is the | STRING |
| HIGH | pyro/contrib/timeseries/lgssmgp.py | 0 | :param torch.tensor targets: a 2-dimensional tensor of real-valued targets of shape ``(t, obs_dim)``, where ``t`` is the | STRING |
| HIGH | pyro/contrib/timeseries/gp.py | 0 | :param torch.tensor targets: a 2-dimensional tensor of real-valued targets of shape ``(t, obs_dim)``, where ``t`` is the | STRING |
| HIGH | pyro/contrib/timeseries/lgssm.py | 0 | return the filtering state for the associated state space model. | STRING |
| HIGH | pyro/contrib/timeseries/gp.py | 0 | return the filtering state for the associated state space model. | STRING |
| HIGH | pyro/contrib/timeseries/lgssmgp.py | 0 | return the filtering state for the associated state space model. | STRING |
| HIGH | pyro/contrib/gp/likelihoods/binary.py | 0 | samples :math:`y` given :math:`f_{loc}`, :math:`f_{var}` according to .. math:: f & \sim \mathbb{normal}(f_{loc}, f_{var | STRING |
| HIGH | pyro/contrib/gp/likelihoods/poisson.py | 0 | samples :math:`y` given :math:`f_{loc}`, :math:`f_{var}` according to .. math:: f & \sim \mathbb{normal}(f_{loc}, f_{var | STRING |
| HIGH | pyro/contrib/gp/likelihoods/multi_class.py | 0 | samples :math:`y` given :math:`f_{loc}`, :math:`f_{var}` according to .. math:: f & \sim \mathbb{normal}(f_{loc}, f_{var | STRING |
| HIGH | pyro/infer/predictive.py | 0 | guesses max_plate_nesting by running the (model,guide) pair once without enumeration. this optimistically assumes static | STRING |
| HIGH | pyro/infer/mcmc/util.py | 0 | guesses max_plate_nesting by running the (model,guide) pair once without enumeration. this optimistically assumes static | STRING |
| HIGH | pyro/infer/elbo.py | 0 | guesses max_plate_nesting by running the (model,guide) pair once without enumeration. this optimistically assumes static | STRING |
| HIGH | pyro/infer/predictive.py | 0 | method that calls :meth:`forward` and returns parameter values of the guide as a `tuple` instead of a `dict`, which is a | STRING |
| HIGH | pyro/infer/autoguide/guides.py | 0 | method that calls :meth:`forward` and returns parameter values of the guide as a `tuple` instead of a `dict`, which is a | STRING |
| HIGH | pyro/infer/autoguide/effect.py | 0 | method that calls :meth:`forward` and returns parameter values of the guide as a `tuple` instead of a `dict`, which is a | STRING |
| HIGH | pyro/infer/rws.py | 0 | returns a single trace from the guide, and the model that is run against it. | STRING |
| HIGH | pyro/infer/traceenum_elbo.py | 0 | returns a single trace from the guide, and the model that is run against it. | STRING |
| HIGH | pyro/infer/tracetmc_elbo.py | 0 | returns a single trace from the guide, and the model that is run against it. | STRING |
| HIGH | pyro/infer/tracegraph_elbo.py | 0 | returns a single trace from the guide, and the model that is run against it. | STRING |
| HIGH | pyro/infer/trace_elbo.py | 0 | returns a single trace from the guide, and the model that is run against it. | STRING |
| HIGH | pyro/infer/elbo.py | 0 | returns a single trace from the guide, and the model that is run against it. | STRING |
| HIGH | pyro/infer/renyi_elbo.py | 0 | returns a single trace from the guide, and the model that is run against it. | STRING |
| HIGH | pyro/infer/trace_mmd.py | 0 | returns a single trace from the guide, and the model that is run against it. | STRING |
| HIGH | pyro/infer/traceenum_elbo.py | 0 | runs the guide and runs the model against the guide with the result packaged as a trace generator. | STRING |
| HIGH | pyro/infer/tracetmc_elbo.py | 0 | runs the guide and runs the model against the guide with the result packaged as a trace generator. | STRING |
| HIGH | pyro/infer/elbo.py | 0 | runs the guide and runs the model against the guide with the result packaged as a trace generator. | STRING |
| HIGH | pyro/infer/traceenum_elbo.py | 0 | like :class:`tracemeanfield_elbo` but uses :func:`pyro.ops.jit.trace` to compile :meth:`loss_and_grads`. this works only | STRING |
| HIGH | pyro/infer/tracegraph_elbo.py | 0 | like :class:`tracemeanfield_elbo` but uses :func:`pyro.ops.jit.trace` to compile :meth:`loss_and_grads`. this works only | STRING |
| HIGH | pyro/infer/trace_elbo.py | 0 | like :class:`tracemeanfield_elbo` but uses :func:`pyro.ops.jit.trace` to compile :meth:`loss_and_grads`. this works only | STRING |
| HIGH | pyro/infer/trace_mean_field_elbo.py | 0 | like :class:`tracemeanfield_elbo` but uses :func:`pyro.ops.jit.trace` to compile :meth:`loss_and_grads`. this works only | STRING |
| HIGH | pyro/infer/tracegraph_elbo.py | 0 | :returns: returns an estimate of the elbo :rtype: float evaluates the elbo with an estimator that uses num_particles man | STRING |
| HIGH | pyro/infer/trace_elbo.py | 0 | :returns: returns an estimate of the elbo :rtype: float evaluates the elbo with an estimator that uses num_particles man | STRING |
| HIGH | pyro/infer/trace_mean_field_elbo.py | 0 | :returns: returns an estimate of the elbo :rtype: float evaluates the elbo with an estimator that uses num_particles man | STRING |
| HIGH | pyro/infer/renyi_elbo.py | 0 | :returns: returns an estimate of the elbo :rtype: float evaluates the elbo with an estimator that uses num_particles man | STRING |
| HIGH | pyro/distributions/transforms/spline.py | 0 | :param y: the output of the bijection :type y: torch.tensor inverts y => x. uses a previously cached inverse if availabl | STRING |
| HIGH | pyro/distributions/transforms/spline_autoregressive.py | 0 | :param y: the output of the bijection :type y: torch.tensor inverts y => x. uses a previously cached inverse if availabl | STRING |
| HIGH | pyro/distributions/transforms/spline_coupling.py | 0 | :param y: the output of the bijection :type y: torch.tensor inverts y => x. uses a previously cached inverse if availabl | STRING |
| HIGH | pyro/distributions/transforms/affine_autoregressive.py | 0 | :param y: the output of the bijection :type y: torch.tensor inverts y => x. uses a previously cached inverse if availabl | STRING |
| HIGH | pyro/distributions/transforms/affine_coupling.py | 0 | :param y: the output of the bijection :type y: torch.tensor inverts y => x. uses a previously cached inverse if availabl | STRING |
| HIGH | pyro/distributions/transforms/spline.py | 0 | calculates the elementwise determinant of the log jacobian | STRING |
| HIGH | pyro/distributions/transforms/radial.py | 0 | calculates the elementwise determinant of the log jacobian | STRING |
| HIGH | pyro/distributions/transforms/planar.py | 0 | calculates the elementwise determinant of the log jacobian | STRING |
| HIGH | pyro/distributions/transforms/block_autoregressive.py | 0 | calculates the elementwise determinant of the log jacobian | STRING |
| HIGH | pyro/distributions/transforms/spline_autoregressive.py | 0 | calculates the elementwise determinant of the log jacobian | STRING |
| HIGH | pyro/distributions/transforms/spline_coupling.py | 0 | calculates the elementwise determinant of the log jacobian | STRING |
| HIGH | pyro/distributions/transforms/affine_autoregressive.py | 0 | calculates the elementwise determinant of the log jacobian | STRING |
| HIGH | pyro/distributions/transforms/sylvester.py | 0 | calculates the elementwise determinant of the log jacobian | STRING |
| HIGH | pyro/distributions/transforms/neural_autoregressive.py | 0 | calculates the elementwise determinant of the log jacobian | STRING |
| HIGH | pyro/distributions/transforms/polynomial.py | 0 | calculates the elementwise determinant of the log jacobian | STRING |
| HIGH | pyro/distributions/transforms/affine_coupling.py | 0 | calculates the elementwise determinant of the log jacobian | STRING |
| HIGH | pyro/distributions/transforms/spline.py | 0 | a helper function to create a :class:`~pyro.distributions.transforms.splinecoupling` object for consistency with other h | STRING |
| 33 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/contrib/funsor/test_pyroapi_funsor.py | 17 | CODE | |
| LOW | tests/contrib/funsor/test_pyroapi_funsor.py | 10 | CODE | |
| LOW | tests/pyroapi/test_pyroapi.py | 6 | CODE | |
| LOW | pyro/primitives.py | 32 | CODE | |
| LOW | pyro/util.py | 32 | CODE | |
| LOW | pyro/util.py | 33 | CODE | |
| LOW | pyro/util.py | 34 | CODE | |
| LOW | pyro/generic.py | 6 | CODE | |
| LOW | pyro/generic.py | 7 | CODE | |
| LOW | pyro/__init__.py | 4 | CODE | |
| LOW | pyro/__init__.py | 5 | CODE | |
| LOW | pyro/__init__.py | 6 | CODE | |
| LOW | pyro/__init__.py | 7 | CODE | |
| LOW | pyro/__init__.py | 7 | CODE | |
| LOW | pyro/__init__.py | 7 | CODE | |
| LOW | pyro/__init__.py | 8 | CODE | |
| LOW | pyro/__init__.py | 8 | CODE | |
| LOW | pyro/__init__.py | 8 | CODE | |
| LOW | pyro/__init__.py | 8 | CODE | |
| LOW | pyro/__init__.py | 8 | CODE | |
| LOW | pyro/__init__.py | 8 | CODE | |
| LOW | pyro/__init__.py | 8 | CODE | |
| LOW | pyro/__init__.py | 8 | CODE | |
| LOW | pyro/__init__.py | 8 | CODE | |
| LOW | pyro/__init__.py | 8 | CODE | |
| LOW | pyro/__init__.py | 8 | CODE | |
| LOW | pyro/__init__.py | 8 | CODE | |
| LOW | pyro/__init__.py | 8 | CODE | |
| LOW | pyro/__init__.py | 8 | CODE | |
| LOW | pyro/__init__.py | 8 | CODE | |
| LOW | pyro/__init__.py | 8 | CODE | |
| LOW | pyro/__init__.py | 26 | CODE | |
| LOW | pyro/__init__.py | 28 | CODE | |
| LOW | pyro/nn/__init__.py | 4 | CODE | |
| LOW | pyro/nn/__init__.py | 4 | CODE | |
| LOW | pyro/nn/__init__.py | 4 | CODE | |
| LOW | pyro/nn/__init__.py | 6 | CODE | |
| LOW | pyro/nn/__init__.py | 6 | CODE | |
| LOW | pyro/nn/__init__.py | 6 | CODE | |
| LOW | pyro/nn/__init__.py | 11 | CODE | |
| LOW | pyro/nn/__init__.py | 11 | CODE | |
| LOW | pyro/nn/__init__.py | 12 | CODE | |
| LOW | pyro/nn/__init__.py | 12 | CODE | |
| LOW | pyro/nn/__init__.py | 12 | CODE | |
| LOW | pyro/nn/__init__.py | 12 | CODE | |
| LOW | pyro/nn/__init__.py | 12 | CODE | |
| LOW | pyro/nn/module.py | 68 | CODE | |
| LOW | pyro/nn/module.py | 69 | CODE | |
| LOW | pyro/poutine/guide.py | 16 | CODE | |
| LOW | pyro/poutine/block_messenger.py | 10 | CODE | |
| LOW | pyro/poutine/util.py | 10 | CODE | |
| LOW | pyro/poutine/util.py | 11 | CODE | |
| LOW | pyro/poutine/replay_messenger.py | 9 | CODE | |
| LOW | pyro/poutine/replay_messenger.py | 11 | CODE | |
| LOW | pyro/poutine/replay_messenger.py | 12 | CODE | |
| LOW | pyro/poutine/scale_messenger.py | 12 | CODE | |
| LOW | pyro/poutine/handlers.py | 93 | CODE | |
| LOW | pyro/poutine/handlers.py | 95 | CODE | |
| LOW | pyro/poutine/handlers.py | 97 | CODE | |
| LOW | pyro/poutine/handlers.py | 98 | CODE | |
| 494 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/common.py | 198 | CODE | |
| LOW | tests/common.py | 246 | CODE | |
| LOW | tests/test_examples.py | 327 | CODE | |
| LOW | tests/nn/test_autoregressive.py | 19 | CODE | |
| LOW | tests/nn/test_autoregressive.py | 61 | CODE | |
| LOW | tests/nn/test_autoregressive.py | 124 | CODE | |
| LOW | …ts/integration_tests/test_conjugate_gaussian_models.py | 170 | CODE | |
| LOW | tests/poutine/test_nesting.py | 14 | CODE | |
| LOW | tests/poutine/test_counterfactual.py | 28 | CODE | |
| LOW | tests/contrib/forecast/test_forecaster.py | 177 | CODE | |
| LOW | tests/contrib/forecast/test_util.py | 47 | CODE | |
| LOW | tests/contrib/timeseries/test_gp.py | 42 | CODE | |
| LOW | tests/contrib/mue/test_missingdatahmm.py | 257 | CODE | |
| LOW | tests/contrib/mue/test_statearrangers.py | 21 | CODE | |
| LOW | tests/contrib/funsor/test_valid_models_plate.py | 54 | CODE | |
| LOW | tests/contrib/funsor/test_valid_models_plate.py | 55 | CODE | |
| LOW | tests/contrib/funsor/test_enum_funsor.py | 272 | CODE | |
| LOW | tests/contrib/funsor/test_enum_funsor.py | 341 | CODE | |
| LOW | tests/contrib/funsor/test_enum_funsor.py | 294 | CODE | |
| LOW | tests/contrib/funsor/test_enum_funsor.py | 363 | CODE | |
| LOW | tests/contrib/funsor/test_named_handlers.py | 52 | CODE | |
| LOW | tests/contrib/funsor/test_named_handlers.py | 53 | CODE | |
| LOW | tests/contrib/funsor/test_valid_models_enum.py | 94 | CODE | |
| LOW | tests/contrib/tracking/test_assignment.py | 111 | CODE | |
| LOW | tests/infer/test_inference.py | 174 | CODE | |
| LOW | tests/infer/test_inference.py | 404 | CODE | |
| LOW | tests/infer/test_inference.py | 718 | CODE | |
| LOW | tests/infer/test_compute_downstream_costs.py | 98 | CODE | |
| LOW | tests/infer/test_valid_models.py | 876 | CODE | |
| LOW | tests/infer/test_valid_models.py | 1355 | CODE | |
| LOW | tests/infer/test_valid_models.py | 1417 | CODE | |
| LOW | tests/infer/test_valid_models.py | 1701 | CODE | |
| LOW | tests/infer/test_valid_models.py | 883 | CODE | |
| LOW | tests/infer/test_valid_models.py | 896 | CODE | |
| LOW | tests/infer/test_valid_models.py | 1356 | CODE | |
| LOW | tests/infer/test_valid_models.py | 1420 | CODE | |
| LOW | tests/infer/test_valid_models.py | 1705 | CODE | |
| LOW | tests/infer/test_enum.py | 1974 | CODE | |
| LOW | tests/infer/test_enum.py | 2044 | CODE | |
| LOW | tests/infer/test_enum.py | 1996 | CODE | |
| LOW | tests/infer/test_enum.py | 2066 | CODE | |
| LOW | tests/infer/reparam/util.py | 14 | CODE | |
| LOW | tests/infer/reparam/test_loc_scale.py | 35 | CODE | |
| LOW | tests/infer/reparam/test_loc_scale.py | 41 | CODE | |
| LOW | tests/ops/test_gamma_gaussian.py | 98 | CODE | |
| LOW | tests/ops/test_contract.py | 119 | CODE | |
| LOW | tests/ops/test_gaussian.py | 89 | CODE | |
| LOW | tests/ops/einsum/test_adjoint.py | 52 | CODE | |
| LOW | tests/distributions/test_gaussian_mixtures.py | 29 | CODE | |
| LOW | tests/distributions/test_distributions.py | 97 | CODE | |
| LOW | tests/distributions/test_distributions.py | 336 | CODE | |
| LOW | tests/distributions/test_distributions.py | 362 | CODE | |
| LOW | tests/distributions/test_spanning_tree.py | 181 | CODE | |
| LOW | examples/svi_horovod.py | 64 | CODE | |
| LOW | examples/dmm.py | 263 | CODE | |
| LOW | examples/hmm.py | 175 | CODE | |
| LOW | examples/hmm.py | 266 | CODE | |
| LOW | examples/hmm.py | 317 | CODE | |
| LOW | examples/hmm.py | 372 | CODE | |
| LOW | examples/hmm.py | 460 | CODE | |
| 92 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | setup.py | 12 | # This file is auto-generated with the version information during setup.py installation. | COMMENT |
| MEDIUM | tutorial/source/conf.py | 13 | # This file is execfile()d with the current directory set to its | COMMENT |
| MEDIUM | tests/infer/reparam/test_split.py | 111 | # Create a model conditioned on the observation | COMMENT |
| MEDIUM | docs/source/conf.py | 14 | # This file is execfile()d with the current directory set to its | COMMENT |
| MEDIUM | examples/svi_horovod.py | 65 | # Create a model, synthetic data, and a guide. | COMMENT |
| MEDIUM | examples/svi_horovod.py | 90 | # Create an ELBO loss and a Pyro optimizer. | COMMENT |
| MEDIUM | examples/svi_horovod.py | 98 | # Create a dataloader. | COMMENT |
| MEDIUM | examples/sparse_regression.py | 216 | # Create an artifical dataset with N datapoints and P feature dimensions. Of the P | COMMENT |
| MEDIUM⚡ | examples/svi_torch.py | 57 | # Create a synthetic dataset from a randomly initialized model. | COMMENT |
| MEDIUM⚡ | examples/svi_torch.py | 64 | # Create a model and a guide, both as (Pyro)Modules. | COMMENT |
| MEDIUM⚡ | examples/svi_torch.py | 68 | # Create a loss function as a Module that includes model and guide parameters. | COMMENT |
| MEDIUM⚡ | examples/svi_torch.py | 76 | # Create a dataloader. | COMMENT |
| MEDIUM⚡ | examples/svi_torch.py | 86 | # Create a PyTorch optimizer for the parameters of the model and guide in loss_fn. | COMMENT |
| MEDIUM | examples/minipyro.py | 20 | # Define a basic model with a single Normal latent random variable `loc` | COMMENT |
| MEDIUM | examples/minipyro.py | 27 | # Define a guide (i.e. variational distribution) with a Normal | COMMENT |
| MEDIUM | examples/svi_lightning.py | 80 | # Create a model, synthetic data, a guide, and a lightning module. | COMMENT |
| MEDIUM | examples/svi_lightning.py | 90 | # Create a dataloader. | COMMENT |
| MEDIUM | examples/sparse_gamma_def.py | 168 | # Define a guide using the EasyGuide class. | COMMENT |
| MEDIUM | examples/vae/utils/vae_plots.py | 55 | # Create the FacetGrid with scatter plot | COMMENT |
| MEDIUM | examples/vae/utils/mnist_cached.py | 14 | # This file contains utilities for caching, transforming and splitting MNIST data | COMMENT |
| MEDIUM | pyro/nn/auto_reg_nn.py | 63 | # Create the indices that are assigned to the neurons | COMMENT |
| MEDIUM | pyro/nn/module.py | 681 | # Create a new sub PyroModule, overwriting any old value. | COMMENT |
| MEDIUM | pyro/nn/module.py | 690 | # Create a new PyroParam, overwriting any old value. | COMMENT |
| MEDIUM | pyro/nn/module.py | 738 | # Create a new nn.Parameter, overwriting any old value. | COMMENT |
| MEDIUM | pyro/nn/module.py | 775 | # Create a new PyroSample, overwriting any old value. | COMMENT |
| MEDIUM | pyro/contrib/minipyro.py | 301 | # This method handles running the model and guide, constructing the loss | COMMENT |
| MEDIUM | pyro/contrib/forecast/forecaster.py | 146 | # Create a sample site. | COMMENT |
| MEDIUM | pyro/contrib/autoname/named.py | 24 | >>> state.xs = named.List() # Create a contained list. | STRING |
| MEDIUM | pyro/infer/discrete.py | 46 | # Create an enumerated trace. | COMMENT |
| MEDIUM | pyro/infer/autoguide/structured.py | 347 | # Create a reparametrized Delta distribution. | COMMENT |
| MEDIUM | pyro/infer/autoguide/gaussian.py | 425 | # Create a dense joint Gaussian over flattened variables. | COMMENT |
| MEDIUM | pyro/infer/reparam/strategies.py | 207 | # Create an elementwise-learnable reparametrizer. | COMMENT |
| MEDIUM | pyro/ops/einsum/util.py | 17 | # This function is copied and adapted from: | COMMENT |
| MEDIUM | pyro/distributions/transforms/simplex_to_ordered.py | 11 | # This class is a port of https://num.pyro.ai/en/stable/_modules/numpyro/distributions/transforms.html#SimplexToOrderedT | COMMENT |
| MEDIUM | pyro/distributions/transforms/neural_autoregressive.py | 71 | # Create the intermediate transform used | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_examples.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/integration_tests/test_tracegraph_elbo.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | …ts/integration_tests/test_conjugate_gaussian_models.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/poutine/test_poutines.py | 24 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/poutine/test_nesting.py | 11 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/poutine/test_mapdata.py | 14 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/contrib/epidemiology/test_models.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/contrib/funsor/test_valid_models_plate.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/contrib/funsor/test_enum_funsor.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/contrib/funsor/test_tmc.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | …s/contrib/funsor/test_valid_models_sequential_plate.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/contrib/funsor/test_named_handlers.py | 24 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/contrib/funsor/test_valid_models_enum.py | 32 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/contrib/funsor/test_infer_discrete.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/contrib/autoname/test_scoping.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/contrib/gp/test_models.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/contrib/tracking/test_em.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/contrib/tracking/test_assignment.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/contrib/tracking/test_hashing.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/infer/test_gradient.py | 31 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/infer/test_inference.py | 44 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/infer/test_discrete.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/infer/test_tmc.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/infer/test_elbo_mapdata.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/infer/test_jit.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/infer/test_valid_models.py | 34 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/infer/test_enum.py | 32 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/infer/autoguide/test_inference.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/infer/mcmc/test_nuts.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/infer/mcmc/test_valid_models.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/infer/mcmc/test_hmc.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/ops/test_newton.py | 14 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/ops/test_integrator.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/distributions/test_gaussian_mixtures.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/distributions/test_hmm.py | 39 | logger = logging.getLogger(__name__) | CODE |
| LOW | pyro/util.py | 37 | def set_rng_seed(rng_seed: int) -> None: | CODE |
| LOW | pyro/util.py | 56 | def set_rng_state(state: Dict[str, Any]) -> None: | CODE |
| LOW | pyro/__init__.py | 39 | __all__ = [ | CODE |
| LOW | pyro/nn/__init__.py | 20 | __all__ = [ | CODE |
| LOW | pyro/poutine/__init__.py | 31 | __all__ = [ | CODE |
| LOW | pyro/poutine/runtime.py | 255 | def set_first_available_dim(self, first_available_dim: int) -> None: | CODE |
| LOW | pyro/optim/pytorch_optimizers.py | 9 | __all__ = [] | CODE |
| LOW | pyro/optim/__init__.py | 11 | __all__ = [ | CODE |
| LOW | pyro/optim/optim.py | 168 | def set_state(self, state_dict: Dict) -> None: | CODE |
| LOW | pyro/contrib/__init__.py | 23 | __all__ = [ | STRING |
| LOW | pyro/contrib/forecast/__init__.py | 7 | __all__ = [ | CODE |
| LOW | pyro/contrib/forecast/forecaster.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | pyro/contrib/forecast/evaluate.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | pyro/contrib/easyguide/__init__.py | 6 | __all__ = [ | CODE |
| LOW | pyro/contrib/timeseries/__init__.py | 18 | __all__ = [ | CODE |
| LOW | pyro/contrib/bnn/__init__.py | 6 | __all__ = [ | CODE |
| LOW | pyro/contrib/cevae/__init__.py | 40 | logger = logging.getLogger(__name__) | CODE |
| LOW | pyro/contrib/oed/__init__.py | 72 | __all__ = ["search", "eig"] | CODE |
| LOW | pyro/contrib/oed/eig.py | 17 | __all__ = [ | CODE |
| LOW | pyro/contrib/epidemiology/models.py | 1271 | __all__ = [] | STRING |
| LOW⚡ | pyro/contrib/epidemiology/compartmental.py | 54 | logger = logging.getLogger(__name__) | CODE |
| LOW | pyro/contrib/epidemiology/__init__.py | 9 | __all__ = [ | CODE |
| LOW | pyro/contrib/funsor/__init__.py | 40 | __all__ = [ | CODE |
| LOW | pyro/contrib/autoname/__init__.py | 13 | __all__ = [ | CODE |
| LOW | pyro/contrib/gp/__init__.py | 7 | __all__ = [ | CODE |
| 31 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tutorial/source/conf.py | 1 | # Copyright (c) 2017-2019 Uber Technologies, Inc. | COMMENT |
| LOW | tutorial/source/conf.py | 21 | COMMENT | |
| LOW | tutorial/source/conf.py | 101 | # extend timeout | COMMENT |
| LOW | tutorial/source/conf.py | 141 | # The font size ('10pt', '11pt' or '12pt'). | COMMENT |
| LOW | tests/contrib/funsor/test_enum_funsor.py | 1101 | elbo = infer.TraceEnum_ELBO(max_plate_nesting=0) | COMMENT |
| LOW | tests/contrib/funsor/test_enum_funsor.py | 1241 | elbo.differentiable_loss(model_plate_plate, guide, data) | COMMENT |
| LOW | tests/contrib/funsor/test_valid_models_enum.py | 321 | # z00 z10 z20 | COMMENT |
| LOW | tests/infer/test_inspect.py | 261 | "x": {"x": {"p"}, "y": {"p"}, "z": set()}, | COMMENT |
| LOW | tests/infer/test_inspect.py | 301 | }, | COMMENT |
| LOW | tests/infer/test_inspect.py | 341 | "y": {"y": _, "z": _}, | COMMENT |
| LOW | tests/infer/test_valid_models.py | 1841 | ) | COMMENT |
| LOW | tests/infer/test_valid_models.py | 1861 | # ------------------- | COMMENT |
| LOW | tests/infer/test_enum.py | 2801 | def test_elbo_enumerate_plates_6(scale): | COMMENT |
| LOW | tests/infer/test_enum.py | 2941 | # +-------------+ | COMMENT |
| LOW | tests/ops/test_contract.py | 321 | # a\ /a | COMMENT |
| LOW | tests/ops/test_contract.py | 341 | # |d | COMMENT |
| LOW | tests/distributions/test_stable_log_prob.py | 141 | # # The below tests will be executed: | COMMENT |
| LOW | docs/source/conf.py | 1 | # Copyright (c) 2017-2019 Uber Technologies, Inc. | COMMENT |
| LOW | docs/source/conf.py | 21 | # serve to show the default. | COMMENT |
| LOW | docs/source/conf.py | 141 | # Output file base name for HTML help builder. | COMMENT |
| LOW | examples/svi_horovod.py | 1 | # Copyright Contributors to the Pyro project. | COMMENT |
| LOW | examples/sir_hmc.py | 1 | # Copyright Contributors to the Pyro project. | COMMENT |
| LOW | examples/sir_hmc.py | 41 | # This models the dynamics of three groups within a population: | COMMENT |
| LOW | examples/sir_hmc.py | 141 | COMMENT | |
| LOW | examples/svi_lightning.py | 1 | # Copyright Contributors to the Pyro project. | COMMENT |
| LOW | examples/sparse_gamma_def.py | 1 | # Copyright (c) 2017-2019 Uber Technologies, Inc. | COMMENT |
| LOW | examples/sparse_gamma_def.py | 161 | def clip_params(): | COMMENT |
| LOW | examples/dmm.py | 221 | # we enclose all the sample statements in the model in a plate. | COMMENT |
| LOW | examples/dmm.py | 281 | # push the observed x's through the rnn; | COMMENT |
| LOW | examples/hmm.py | 61 | log = logging.getLogger() | COMMENT |
| LOW | examples/hmm.py | 121 | dist.Bernoulli(probs_y[x.squeeze(-1)]), | COMMENT |
| LOW | examples/hmm.py | 141 | # y_178_0 dist 16 88 | | COMMENT |
| LOW | examples/hmm.py | 161 | # -2 and -3. If we had not used pyro.markov above, each enumerated variable | COMMENT |
| LOW | examples/hmm.py | 221 | # Let's see how batching changes the shapes of sample sites: | COMMENT |
| LOW | examples/hmm.py | 241 | # x_2 dist 16 1 10 1 | | COMMENT |
| LOW | examples/hmm.py | 301 | COMMENT | |
| LOW | examples/hmm.py | 361 | # w[t-1] ----> w[t] ---> w[t+1] | COMMENT |
| LOW | examples/hmm.py | 501 | # _______>______ | COMMENT |
| LOW | examples/air/main.py | 81 | # http://akosiorek.github.io/ml/2017/09/03/implementing-air.html | COMMENT |
| LOW | examples/contrib/funsor/hmm.py | 81 | # x[t-1] --> x[t] --> x[t+1] | COMMENT |
| LOW | examples/contrib/funsor/hmm.py | 141 | # Sample Sites: | COMMENT |
| LOW | examples/contrib/funsor/hmm.py | 161 | # value 88 | | COMMENT |
| LOW | examples/contrib/funsor/hmm.py | 241 | # value 88 | | COMMENT |
| LOW | examples/contrib/funsor/hmm.py | 261 | # value 16 1 1 | | COMMENT |
| LOW | examples/contrib/funsor/hmm.py | 301 | ) | COMMENT |
| LOW | examples/contrib/funsor/hmm.py | 361 | with tones_plate as tones: | COMMENT |
| LOW | examples/contrib/funsor/hmm.py | 501 | with pyro.plate("tones_{}".format(t), data_dim, dim=-1): | COMMENT |
| LOW | examples/contrib/funsor/hmm.py | 641 | # value | 16 51 | COMMENT |
| LOW | pyro/nn/module.py | 941 | PyroModule[torch.nn.RNNBase]._flat_weights = _FlatWeightsDescriptor() # type: ignore[attr-defined] | COMMENT |
| LOW | pyro/poutine/reparam_messenger.py | 81 | else: | COMMENT |
| LOW | pyro/contrib/minipyro.py | 321 | COMMENT | |
| LOW | pyro/contrib/forecast/forecaster.py | 121 | ) | COMMENT |
| LOW | pyro/contrib/funsor/handlers/plate_messenger.py | 241 | # x_0 dist | | COMMENT |
| LOW | pyro/contrib/funsor/handlers/plate_messenger.py | 261 | # value 3 1 1 1 1 | | COMMENT |
| LOW | pyro/contrib/gp/models/sgpr.py | 201 | """ | COMMENT |
| LOW | pyro/infer/reparam/conjugate.py | 81 | infer={ | COMMENT |
| LOW | pyro/infer/reparam/stable.py | 181 | # 3. Decompose S = G * sqrt(Z) via the symmetric strategy, where | COMMENT |
| LOW | pyro/infer/mcmc/nuts.py | 381 | r, r_unscaled = self._sample_r(name="r_t={}".format(self._t)) | COMMENT |
| LOW | pyro/infer/mcmc/logger.py | 21 | LOG_MSG = "LOG" | COMMENT |
| LOW | pyro/distributions/hmm.py | 121 | # 1 0 2 | COMMENT |
| 3 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/contrib/funsor/test_valid_models_enum.py | 328 | # ------------------- | COMMENT |
| MEDIUM | tests/infer/test_valid_models.py | 1861 | # ------------------- | STRING |
| MEDIUM | tests/ops/test_contract.py | 153 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | tests/ops/test_contract.py | 197 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | examples/sir_hmc.py | 5 | # ============ | COMMENT |
| MEDIUM | examples/sir_hmc.py | 37 | # ==================== | COMMENT |
| MEDIUM | examples/sir_hmc.py | 512 | # ========================== | COMMENT |
| MEDIUM | examples/sir_hmc.py | 602 | # =========== | COMMENT |
| MEDIUM | examples/baseball.py | 58 | # =================================== | COMMENT |
| MEDIUM | examples/baseball.py | 60 | # =================================== | COMMENT |
| MEDIUM | examples/baseball.py | 136 | # =================================== | STRING |
| MEDIUM | examples/baseball.py | 138 | # =================================== | STRING |
| MEDIUM⚡ | examples/baseball.py | 196 | # =================================== | STRING |
| MEDIUM⚡ | examples/baseball.py | 198 | # =================================== | STRING |
| MEDIUM | pyro/contrib/forecast/util.py | 175 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | pyro/params/param_store.py | 56 | # ------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | pyro/params/param_store.py | 198 | # ------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | pyro/params/param_store.py | 273 | # ------------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/infer/mcmc/test_mcmc_api.py | 79 | CODE | |
| LOW | tests/infer/mcmc/test_mcmc_api.py | 106 | CODE | |
| LOW | tests/distributions/dist_fixture.py | 17 | CODE | |
| LOW | examples/dmm.py | 153 | CODE | |
| LOW | examples/air/air.py | 364 | CODE | |
| LOW | examples/air/air.py | 379 | CODE | |
| LOW | examples/air/air.py | 35 | CODE | |
| LOW | pyro/poutine/block_messenger.py | 145 | CODE | |
| LOW | pyro/poutine/handlers.py | 141 | CODE | |
| LOW | pyro/poutine/handlers.py | 155 | CODE | |
| LOW | pyro/poutine/handlers.py | 169 | CODE | |
| LOW | pyro/contrib/forecast/forecaster.py | 262 | CODE | |
| LOW | pyro/contrib/forecast/forecaster.py | 427 | CODE | |
| LOW | pyro/contrib/forecast/evaluate.py | 71 | CODE | |
| LOW | pyro/contrib/mue/models.py | 371 | CODE | |
| LOW | pyro/contrib/mue/missingdatahmm.py | 113 | CODE | |
| LOW | pyro/contrib/bnn/hidden_layer.py | 61 | CODE | |
| LOW | pyro/contrib/oed/glmm/glmm.py | 209 | CODE | |
| LOW | pyro/contrib/epidemiology/compartmental.py | 384 | CODE | |
| LOW | pyro/contrib/funsor/handlers/__init__.py | 38 | CODE | |
| LOW | pyro/infer/elbo.py | 110 | CODE | |
| LOW | pyro/infer/trace_mmd.py | 64 | CODE | |
| LOW | pyro/infer/autoguide/guides.py | 842 | CODE | |
| LOW | pyro/infer/mcmc/util.py | 370 | CODE | |
| LOW | pyro/infer/mcmc/nuts.py | 137 | CODE | |
| LOW | pyro/infer/mcmc/api.py | 454 | CODE | |
| LOW | pyro/infer/mcmc/api.py | 663 | CODE | |
| LOW | pyro/infer/mcmc/hmc.py | 96 | CODE | |
| LOW | pyro/ops/tensor_utils.py | 98 | CODE | |
| LOW | pyro/ops/tensor_utils.py | 179 | CODE | |
| LOW | pyro/ops/gaussian.py | 474 | CODE | |
| LOW | pyro/distributions/diag_normal_mixture_shared_cov.py | 122 | CODE | |
| LOW | pyro/distributions/mixture.py | 126 | CODE | |
| LOW | pyro/distributions/mixture.py | 136 | CODE | |
| LOW | pyro/distributions/mixture.py | 151 | CODE | |
| LOW | pyro/distributions/diag_normal_mixture.py | 120 | CODE | |
| LOW | pyro/distributions/torch.py | 350 | CODE | |
| LOW | pyro/distributions/one_one_matching.py | 175 | CODE | |
| LOW | pyro/distributions/hmm.py | 369 | CODE | |
| LOW | pyro/distributions/hmm.py | 582 | CODE | |
| LOW | pyro/distributions/hmm.py | 899 | CODE | |
| LOW | pyro/distributions/transforms/spline.py | 83 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/contrib/forecast/bart.py | 50 | # simply pass in an empty tensor (see the preprocess() function above). | COMMENT |
| MEDIUM | examples/scanvi/scanvi.py | 318 | # Note we use TraceEnum_ELBO in order to leverage Pyro's machinery | COMMENT |
| MEDIUM | scripts/perf_test.sh | 22 | # Use process time whenever possible to make timing more robust | COMMENT |
| MEDIUM | pyro/optim/optim.py | 40 | # provides no comprehensive class hierarchy, and (2) the base class | COMMENT |
| MEDIUM | pyro/contrib/epidemiology/compartmental.py | 736 | @set_approx_sample_thresh(100) # This is robust to gross approximation. | STRING |
| MEDIUM | pyro/contrib/funsor/handlers/named_messenger.py | 94 | batch_shape = raw_value.batch_shape # TODO make make this more robust | CODE |
| MEDIUM | pyro/infer/inspect.py | 230 | # u is henceforth downstream and d is henceforth upstream. | STRING |
| MEDIUM | pyro/infer/mcmc/logger.py | 35 | # not be used in advertising or publicity pertaining to distribution | COMMENT |
| MEDIUM | pyro/infer/mcmc/adaptation.py | 521 | # here, we will leverage mass_matrix_sqrt_inverse to reduce the cost to | STRING |
| MEDIUM | pyro/distributions/one_two_matching.py | 110 | # We find that Sinkhorn iteration is more robust and faster than the | STRING |
| MEDIUM | pyro/distributions/one_one_matching.py | 109 | # We find that Sinkhorn iteration is more robust and faster than the | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 40 | except Exception: | STRING |
| LOW | setup.py | 57 | except Exception as e: | STRING |
| LOW | tests/ops/test_gaussian.py | 382 | except Exception: | CODE |
| LOW | tests/distributions/test_pickle.py | 84 | except Exception: | CODE |
| LOW | profiler/hmm.py | 43 | except Exception: | CODE |
| LOW | pyro/infer/mcmc/util.py | 497 | except Exception: | CODE |
| MEDIUM | pyro/infer/mcmc/util.py | 494 | def wrapped(sample, *args, **kwargs): | CODE |
| LOW | pyro/infer/mcmc/logger.py | 179 | except Exception: | CODE |
| LOW | pyro/infer/mcmc/logger.py | 196 | except Exception: | CODE |
| LOW | pyro/infer/mcmc/logger.py | 229 | except Exception: | CODE |
| MEDIUM | pyro/infer/mcmc/logger.py | 189 | def emit(self, record): | CODE |
| MEDIUM | pyro/infer/mcmc/logger.py | 217 | def emit(self, record): | CODE |
| LOW | pyro/infer/mcmc/api.py | 141 | except Exception as e: | CODE |
| LOW | pyro/infer/mcmc/hmc.py | 179 | except Exception as e: | STRING |
| LOW | pyro/ops/integrator.py | 85 | except Exception as e: | STRING |
| LOW | pyro/distributions/torch_patch.py | 27 | except Exception: | CODE |
| MEDIUM | pyro/distributions/torch_patch.py | 24 | def decorator(new_fn): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | profiler/distributions.py | 124 | out.push(result_row) | CODE |
| HIGH | pyro/infer/csis.py | 19 | program to minimise KL(model posterior || guide), and inference with | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/cvae/util.py | 138 | # Iterate over data. | COMMENT |
| LOW | examples/cvae/cvae.py | 150 | # Iterate over data. | COMMENT |
| LOW | pyro/primitives.py | 157 | # Check if stack is empty. | COMMENT |
| LOW | pyro/contrib/examples/multi_mnist.py | 81 | # Set RNG to known state. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pyro/contrib/minipyro.py | 323 | # This is a basic implementation of the Evidence Lower Bound, which is the | COMMENT |
| MEDIUM | pyro/infer/inspect.py | 115 | Here is a simple example with no plates. We see every node depends on | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/infer/mcmc/test_mcmc_api.py | 47 | return {"dummy_key": "dummy_value"} | CODE |
| LOW⚡ | tests/infer/mcmc/test_mcmc_api.py | 321 | assert diagnostics["dummy_key"] == { | CODE |
| LOW⚡ | tests/infer/mcmc/test_mcmc_api.py | 322 | "chain {}".format(i): "dummy_value" for i in range(num_chains) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyro/contrib/examples/polyphonic_data_loader.py | 58 | def process_data(base_path, dataset, min_note=21, note_range=88): | CODE |