PyTorch version of Stable Baselines, reliable implementations of reinforcement learning algorithms.
This report summarizes scanner evidence for DLR-RM/stable-baselines3, a Python project with 13,883 GitHub stars. SynthScan examined 34,786 lines of code across 161 source files, recording 348 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 12.2 (Moderate 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? 220 finding(s).
Are imports declared and package/API names verified? 66 finding(s).
Are wrappers, guards, and repeated structures necessary? 223 finding(s).
Which changes need focused human review? 348 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 348 distinct pattern matches across 13 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 | tests/test_deterministic.py | 12 | def test_deterministic_training_common(algo): | CODE |
| LOW | tests/test_monitor.py | 70 | def test_monitor_load_results(tmp_path): | CODE |
| LOW⚡ | tests/test_vec_stacked_obs.py | 12 | def test_compute_stacking_box(): | CODE |
| LOW⚡ | tests/test_vec_stacked_obs.py | 21 | def test_compute_stacking_multidim_box(): | CODE |
| LOW⚡ | tests/test_vec_stacked_obs.py | 30 | def test_compute_stacking_multidim_box_channel_first(): | CODE |
| LOW⚡ | tests/test_vec_stacked_obs.py | 41 | def test_compute_stacking_image_channel_first(): | CODE |
| LOW⚡ | tests/test_vec_stacked_obs.py | 51 | def test_compute_stacking_image_channel_last(): | CODE |
| LOW⚡ | tests/test_vec_stacked_obs.py | 61 | def test_compute_stacking_image_channel_first_stack_last(): | CODE |
| LOW | tests/test_vec_stacked_obs.py | 73 | def test_compute_stacking_image_channel_last_stack_first(): | CODE |
| LOW | tests/test_vec_stacked_obs.py | 106 | def test_reset_update_multidim_box(): | CODE |
| LOW | tests/test_vec_stacked_obs.py | 127 | def test_reset_update_multidim_box_channel_first(): | CODE |
| LOW | tests/test_vec_stacked_obs.py | 146 | def test_reset_update_image_channel_first(): | CODE |
| LOW | tests/test_vec_stacked_obs.py | 165 | def test_reset_update_image_channel_last(): | CODE |
| LOW | tests/test_vec_stacked_obs.py | 186 | def test_reset_update_image_channel_first_stack_last(): | CODE |
| LOW | tests/test_vec_stacked_obs.py | 207 | def test_reset_update_image_channel_last_stack_first(): | CODE |
| LOW | tests/test_vec_stacked_obs.py | 271 | def test_episode_termination_box(): | CODE |
| LOW | tests/test_vec_stacked_obs.py | 292 | def test_episode_termination_dict(): | CODE |
| LOW | tests/test_utils.py | 60 | def test_make_vec_env_func_checker(): | CODE |
| LOW | tests/test_utils.py | 126 | def test_vec_env_wrapper_kwargs(): | CODE |
| LOW | tests/test_utils.py | 131 | def test_vec_env_monitor_kwargs(): | CODE |
| LOW | tests/test_utils.py | 150 | def test_env_auto_monitor_wrap(): | CODE |
| LOW | tests/test_utils.py | 291 | def test_evaluate_policy_monitors(vec_env_class): | CODE |
| LOW | tests/test_utils.py | 389 | def test_get_parameters_by_name(): | CODE |
| LOW | tests/test_utils.py | 459 | def test_is_vectorized_observation(): | CODE |
| LOW | tests/test_utils.py | 535 | def test_policy_is_vectorized_obs(): | CODE |
| LOW | tests/test_utils.py | 604 | def test_deprecated_schedules(): | CODE |
| LOW | tests/test_utils.py | 652 | def test_centered_momentum_weight_decay(self): | CODE |
| LOW | tests/test_vec_envs.py | 367 | def test_subproc_start_method(): | CODE |
| LOW | tests/test_vec_envs.py | 412 | def test_vecenv_wrapper_getattr(): | CODE |
| LOW | tests/test_vec_envs.py | 450 | def make_transposed_image_env(): | CODE |
| LOW | tests/test_callbacks.py | 121 | def test_eval_callback_vec_env(): | CODE |
| LOW | tests/test_callbacks.py | 161 | def test_callbacks_can_cancel_runs(model_class, model_kwargs, callback_false_value): | CODE |
| LOW | tests/test_callbacks.py | 171 | def test_eval_success_logging(tmp_path): | CODE |
| LOW | tests/test_callbacks.py | 195 | def test_eval_callback_logs_are_written_with_the_correct_timestep(tmp_path): | CODE |
| LOW | tests/test_callbacks.py | 252 | def test_checkpoint_additional_info(tmp_path): | CODE |
| LOW | tests/test_callbacks.py | 278 | def test_eval_callback_chaining(tmp_path): | CODE |
| LOW | tests/test_envs.py | 90 | def test_high_dimension_action_space(): | CODE |
| LOW | tests/test_envs.py | 177 | def test_non_default_action_spaces(new_action_space): | CODE |
| LOW | tests/test_envs.py | 226 | def test_common_failures_reset(): | CODE |
| LOW | tests/test_envs.py | 293 | def test_common_failures_step(): | CODE |
| LOW | tests/test_n_step_replay.py | 38 | def test_n_steps_warns_with_custom_replay_buffer_class(replay_buffer_class): | CODE |
| LOW | tests/test_n_step_replay.py | 47 | def test_n_steps_with_dict_obs(replay_buffer_class): | CODE |
| LOW | tests/test_n_step_replay.py | 58 | def test_n_steps_custom_class_no_warnings(): | CODE |
| LOW | tests/test_n_step_replay.py | 123 | def compute_expected_nstep_reward(gamma, n_steps, stop_idx=None): | CODE |
| LOW | tests/test_n_step_replay.py | 141 | def test_nstep_early_termination(done_at, n_steps, base_idx): | CODE |
| LOW | tests/test_n_step_replay.py | 156 | def test_nstep_early_truncation(truncated_at, n_steps, base_idx): | CODE |
| LOW | tests/test_n_step_replay.py | 169 | def test_nstep_no_terminations(n_steps): | CODE |
| LOW | tests/test_cnn.py | 132 | def test_features_extractor_target_net(model_class, share_features_extractor): | CODE |
| LOW | tests/test_sde.py | 10 | def test_state_dependent_exploration_grad(): | CODE |
| LOW | tests/test_sde.py | 72 | def test_state_dependent_noise(model_class, use_expln, squash_output): | CODE |
| LOW | tests/test_run.py | 42 | def test_advantage_normalization(model_class, normalize_advantage): | CODE |
| LOW | tests/test_env_checker.py | 33 | def test_check_env_dict_action(): | CODE |
| LOW | tests/test_env_checker.py | 121 | def test_check_env_detailed_error(obs_tuple, method): | CODE |
| LOW | tests/test_env_checker.py | 183 | def test_check_env_single_step_env(): | CODE |
| LOW | tests/test_env_checker.py | 212 | def test_check_env_graph_space(): | CODE |
| LOW | tests/test_env_checker.py | 253 | def test_check_env_sequence_obs(env_class): | CODE |
| LOW | tests/test_env_checker.py | 258 | def test_check_env_sequence_tuple(): | CODE |
| LOW | tests/test_predict.py | 113 | def test_subclassed_space_env(model_class): | CODE |
| LOW | tests/test_predict.py | 121 | def test_mixing_gym_vecenv_api(): | CODE |
| LOW | tests/test_her.py | 88 | def test_goal_selection_strategy(goal_selection_strategy): | CODE |
| 78 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_vec_envs.py | 19 | CODE | |
| LOW | tests/test_logger.py | 682 | CODE | |
| LOW | tests/test_logger.py | 702 | CODE | |
| LOW | tests/test_logger.py | 722 | CODE | |
| LOW | docs/conf.py | 21 | CODE | |
| LOW | docs/conf.py | 29 | CODE | |
| LOW | stable_baselines3/__init__.py | 3 | CODE | |
| LOW | stable_baselines3/__init__.py | 4 | CODE | |
| LOW | stable_baselines3/__init__.py | 5 | CODE | |
| LOW | stable_baselines3/__init__.py | 6 | CODE | |
| LOW | stable_baselines3/__init__.py | 7 | CODE | |
| LOW | stable_baselines3/__init__.py | 8 | CODE | |
| LOW | stable_baselines3/__init__.py | 9 | CODE | |
| LOW | stable_baselines3/__init__.py | 10 | CODE | |
| LOW | stable_baselines3/sac/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/sac/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/sac/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/sac/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/ddpg/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/ddpg/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/ddpg/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/ddpg/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/ddpg/policies.py | 2 | CODE | |
| LOW | stable_baselines3/ddpg/policies.py | 2 | CODE | |
| LOW | stable_baselines3/ddpg/policies.py | 2 | CODE | |
| LOW | stable_baselines3/common/type_aliases.py | 13 | CODE | |
| LOW | stable_baselines3/common/type_aliases.py | 14 | CODE | |
| LOW | stable_baselines3/common/evaluation.py | 8 | CODE | |
| LOW | stable_baselines3/common/logger.py | 16 | CODE | |
| LOW | stable_baselines3/common/callbacks.py | 28 | CODE | |
| LOW | stable_baselines3/common/envs/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/common/envs/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/common/envs/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/common/envs/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/common/envs/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/common/envs/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/common/envs/__init__.py | 9 | CODE | |
| LOW | stable_baselines3/common/vec_env/vec_video_recorder.py | 77 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 4 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 5 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 6 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 7 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 8 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 9 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 10 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 11 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 13 | CODE | |
| LOW | stable_baselines3/common/vec_env/__init__.py | 14 | CODE | |
| LOW | stable_baselines3/dqn/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/dqn/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/dqn/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/dqn/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/her/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/her/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/ppo/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/ppo/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/ppo/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/ppo/__init__.py | 2 | CODE | |
| LOW | stable_baselines3/a2c/__init__.py | 1 | CODE | |
| LOW | stable_baselines3/a2c/__init__.py | 2 | CODE | |
| 6 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_vec_extract_dict_obs.py | 62 | def set_attr(self, attr_name, value, indices=None) -> None: | CODE |
| LOW | stable_baselines3/__init__.py | 25 | __all__ = [ | CODE |
| LOW | stable_baselines3/sac/__init__.py | 4 | __all__ = ["SAC", "CnnPolicy", "MlpPolicy", "MultiInputPolicy"] | CODE |
| LOW | stable_baselines3/sac/sac.py | 165 | def _setup_model(self) -> None: | CODE |
| LOW | stable_baselines3/sac/policies.py | 355 | def set_training_mode(self, mode: bool) -> None: | CODE |
| LOW | stable_baselines3/ddpg/__init__.py | 4 | __all__ = ["DDPG", "CnnPolicy", "MlpPolicy", "MultiInputPolicy"] | CODE |
| LOW | stable_baselines3/common/monitor.py | 1 | __all__ = ["Monitor", "ResultsWriter", "get_monitor_files", "load_results"] | CODE |
| LOW | stable_baselines3/common/base_class.py | 252 | def _setup_model(self) -> None: | CODE |
| LOW | stable_baselines3/common/base_class.py | 255 | def set_logger(self, logger: Logger) -> None: | CODE |
| LOW⚡ | stable_baselines3/common/base_class.py | 274 | def _setup_lr_schedule(self) -> None: | CODE |
| LOW⚡ | stable_baselines3/common/base_class.py | 278 | def _update_current_progress_remaining(self, num_timesteps: int, total_timesteps: int) -> None: | CODE |
| LOW⚡ | stable_baselines3/common/base_class.py | 287 | def _update_learning_rate(self, optimizers: list[th.optim.Optimizer] | th.optim.Optimizer) -> None: | CODE |
| LOW | stable_baselines3/common/base_class.py | 438 | def _update_info_buffer(self, infos: list[dict[str, Any]], dones: np.ndarray | None = None) -> None: | CODE |
| LOW | stable_baselines3/common/base_class.py | 476 | def set_env(self, env: GymEnv, force_reset: bool = True) -> None: | CODE |
| LOW | stable_baselines3/common/base_class.py | 559 | def set_random_seed(self, seed: int | None = None) -> None: | CODE |
| LOW | stable_baselines3/common/logger.py | 604 | def set_level(self, level: int) -> None: | CODE |
| LOW | stable_baselines3/common/utils.py | 28 | def set_random_seed(seed: int, using_cuda: bool = False) -> None: | CODE |
| LOW | stable_baselines3/common/utils.py | 68 | def update_learning_rate(optimizer: th.optim.Optimizer, learning_rate: float) -> None: | CODE |
| LOW | stable_baselines3/common/running_mean_std.py | 41 | def update_from_moments(self, batch_mean: np.ndarray, batch_var: np.ndarray, batch_count: float) -> None: | CODE |
| LOW | stable_baselines3/common/off_policy_algorithm.py | 177 | def _setup_model(self) -> None: | CODE |
| LOW | stable_baselines3/common/callbacks.py | 129 | def update_locals(self, locals_: dict[str, Any]) -> None: | CODE |
| LOW | stable_baselines3/common/callbacks.py | 138 | def update_child_locals(self, locals_: dict[str, Any]) -> None: | CODE |
| LOW | stable_baselines3/common/callbacks.py | 181 | def update_child_locals(self, locals_: dict[str, Any]) -> None: | CODE |
| LOW | stable_baselines3/common/callbacks.py | 235 | def update_child_locals(self, locals_: dict[str, Any]) -> None: | CODE |
| LOW | stable_baselines3/common/callbacks.py | 534 | def update_child_locals(self, locals_: dict[str, Any]) -> None: | CODE |
| LOW | stable_baselines3/common/on_policy_algorithm.py | 115 | def _setup_model(self) -> None: | CODE |
| LOW | stable_baselines3/common/policies.py | 203 | def set_training_mode(self, mode: bool) -> None: | CODE |
| LOW | stable_baselines3/common/envs/__init__.py | 11 | __all__ = [ | CODE |
| LOW | stable_baselines3/common/vec_env/subproc_vec_env.py | 196 | def set_attr(self, attr_name: str, value: Any, indices: VecEnvIndices = None) -> None: | CODE |
| LOW | stable_baselines3/common/vec_env/__init__.py | 87 | __all__ = [ | CODE |
| LOW | stable_baselines3/common/vec_env/vec_normalize.py | 155 | def set_venv(self, venv: VecEnv) -> None: | CODE |
| LOW | stable_baselines3/common/vec_env/vec_normalize.py | 209 | def _update_reward(self, reward: np.ndarray) -> None: | CODE |
| LOW | stable_baselines3/common/vec_env/base_vec_env.py | 177 | def set_attr(self, attr_name: str, value: Any, indices: VecEnvIndices = None) -> None: | CODE |
| LOW | stable_baselines3/common/vec_env/base_vec_env.py | 311 | def set_options(self, options: list[dict] | dict | None = None) -> None: | CODE |
| LOW | stable_baselines3/common/vec_env/base_vec_env.py | 398 | def set_options(self, options: list[dict] | dict | None = None) -> None: | CODE |
| LOW | stable_baselines3/common/vec_env/base_vec_env.py | 416 | def set_attr(self, attr_name: str, value: Any, indices: VecEnvIndices = None) -> None: | CODE |
| LOW | stable_baselines3/common/vec_env/dummy_vec_env.py | 121 | def set_attr(self, attr_name: str, value: Any, indices: VecEnvIndices = None) -> None: | CODE |
| LOW | stable_baselines3/dqn/__init__.py | 4 | __all__ = ["DQN", "CnnPolicy", "MlpPolicy", "MultiInputPolicy"] | CODE |
| LOW | stable_baselines3/dqn/dqn.py | 149 | def _setup_model(self) -> None: | CODE |
| LOW | stable_baselines3/dqn/policies.py | 202 | def set_training_mode(self, mode: bool) -> None: | CODE |
| LOW | stable_baselines3/her/her_replay_buffer.py | 124 | def set_env(self, env: VecEnv) -> None: | CODE |
| LOW | stable_baselines3/her/__init__.py | 4 | __all__ = ["GoalSelectionStrategy", "HerReplayBuffer"] | CODE |
| LOW | stable_baselines3/ppo/__init__.py | 4 | __all__ = ["PPO", "CnnPolicy", "MlpPolicy", "MultiInputPolicy"] | CODE |
| LOW | stable_baselines3/ppo/ppo.py | 173 | def _setup_model(self) -> None: | CODE |
| LOW | stable_baselines3/a2c/__init__.py | 4 | __all__ = ["A2C", "CnnPolicy", "MlpPolicy", "MultiInputPolicy"] | CODE |
| LOW | stable_baselines3/td3/td3.py | 145 | def _setup_model(self) -> None: | CODE |
| LOW | stable_baselines3/td3/__init__.py | 4 | __all__ = ["TD3", "CnnPolicy", "MlpPolicy", "MultiInputPolicy"] | CODE |
| LOW | stable_baselines3/td3/policies.py | 244 | def set_training_mode(self, mode: bool) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | stable_baselines3/sac/policies.py | 0 | put the policy in either training or evaluation mode. this affects certain modules, such as batch normalisation and drop | STRING |
| HIGH | stable_baselines3/common/policies.py | 0 | put the policy in either training or evaluation mode. this affects certain modules, such as batch normalisation and drop | STRING |
| HIGH | stable_baselines3/dqn/policies.py | 0 | put the policy in either training or evaluation mode. this affects certain modules, such as batch normalisation and drop | STRING |
| HIGH | stable_baselines3/td3/policies.py | 0 | put the policy in either training or evaluation mode. this affects certain modules, such as batch normalisation and drop | STRING |
| HIGH | stable_baselines3/common/type_aliases.py | 0 | get the policy action from an observation (and optional hidden state). includes sugar-coating to handle different observ | STRING |
| HIGH | stable_baselines3/common/base_class.py | 0 | get the policy action from an observation (and optional hidden state). includes sugar-coating to handle different observ | STRING |
| HIGH | stable_baselines3/common/policies.py | 0 | get the policy action from an observation (and optional hidden state). includes sugar-coating to handle different observ | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_vec_envs.py | 241 | CODE | |
| LOW | tests/test_distributions.py | 174 | CODE | |
| LOW | tests/test_buffers.py | 114 | CODE | |
| LOW | tests/test_logger.py | 97 | CODE | |
| LOW | tests/test_logger.py | 98 | CODE | |
| LOW | stable_baselines3/common/env_checker.py | 95 | CODE | |
| LOW | stable_baselines3/common/env_checker.py | 254 | CODE | |
| LOW | stable_baselines3/common/env_checker.py | 331 | CODE | |
| LOW | stable_baselines3/common/evaluation.py | 12 | CODE | |
| LOW | stable_baselines3/common/logger.py | 450 | CODE | |
| LOW | stable_baselines3/common/logger.py | 177 | CODE | |
| LOW | stable_baselines3/common/logger.py | 338 | CODE | |
| LOW | stable_baselines3/common/distributions.py | 670 | CODE | |
| LOW | stable_baselines3/common/preprocessing.py | 91 | CODE | |
| LOW | stable_baselines3/common/preprocessing.py | 142 | CODE | |
| LOW | stable_baselines3/common/preprocessing.py | 188 | CODE | |
| LOW | stable_baselines3/common/off_policy_algorithm.py | 461 | CODE | |
| LOW | stable_baselines3/common/off_policy_algorithm.py | 526 | CODE | |
| LOW | stable_baselines3/common/save_util.py | 76 | CODE | |
| LOW | stable_baselines3/common/save_util.py | 131 | CODE | |
| LOW | stable_baselines3/common/save_util.py | 244 | CODE | |
| LOW | stable_baselines3/common/save_util.py | 294 | CODE | |
| LOW | stable_baselines3/common/save_util.py | 376 | CODE | |
| LOW | stable_baselines3/common/on_policy_algorithm.py | 162 | CODE | |
| LOW | stable_baselines3/common/policies.py | 684 | CODE | |
| LOW | stable_baselines3/common/envs/multi_input_envs.py | 122 | CODE | |
| LOW | stable_baselines3/common/sb2_compat/rmsprop_tf_like.py | 78 | CODE | |
| LOW | stable_baselines3/common/vec_env/subproc_vec_env.py | 20 | CODE | |
| LOW | …able_baselines3/common/vec_env/stacked_observations.py | 119 | CODE | |
| LOW | stable_baselines3/common/vec_env/vec_normalize.py | 35 | CODE | |
| LOW | stable_baselines3/common/vec_env/vec_check_nan.py | 67 | CODE | |
| LOW | stable_baselines3/ppo/ppo.py | 184 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_save_load.py | 777 | # Create a PPO agent and save it | COMMENT |
| MEDIUM | tests/test_save_load.py | 875 | # Create a simple env | COMMENT |
| MEDIUM | stable_baselines3/sac/policies.py | 294 | # Create a separate features extractor for the critic | COMMENT |
| MEDIUM | stable_baselines3/common/env_util.py | 110 | # Create the monitor folder if needed | COMMENT |
| MEDIUM | stable_baselines3/common/save_util.py | 318 | # Create a zip-archive and write our objects there. | COMMENT |
| MEDIUM | stable_baselines3/common/vec_env/base_vec_env.py | 272 | # Create a big image by tiling images from subprocesses | COMMENT |
| MEDIUM | stable_baselines3/ppo/policies.py | 1 | # This file is here just to define MlpPolicy/CnnPolicy | COMMENT |
| MEDIUM | stable_baselines3/a2c/policies.py | 1 | # This file is here just to define MlpPolicy/CnnPolicy | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_train_eval_mode.py | 41 | CODE | |
| LOW | stable_baselines3/sac/sac.py | 94 | CODE | |
| LOW | stable_baselines3/sac/policies.py | 214 | CODE | |
| LOW | stable_baselines3/sac/policies.py | 398 | CODE | |
| LOW | stable_baselines3/sac/policies.py | 464 | CODE | |
| LOW | stable_baselines3/ddpg/ddpg.py | 60 | CODE | |
| LOW | stable_baselines3/common/env_util.py | 40 | CODE | |
| LOW | stable_baselines3/common/env_util.py | 132 | CODE | |
| LOW | stable_baselines3/common/base_class.py | 106 | CODE | |
| LOW | stable_baselines3/common/off_policy_algorithm.py | 84 | CODE | |
| LOW | stable_baselines3/common/callbacks.py | 370 | CODE | |
| LOW | stable_baselines3/common/on_policy_algorithm.py | 61 | CODE | |
| LOW | stable_baselines3/common/policies.py | 448 | CODE | |
| LOW | stable_baselines3/common/policies.py | 798 | CODE | |
| LOW | stable_baselines3/common/policies.py | 871 | CODE | |
| LOW | stable_baselines3/common/vec_env/vec_normalize.py | 35 | CODE | |
| LOW | stable_baselines3/dqn/dqn.py | 80 | CODE | |
| LOW | stable_baselines3/ppo/ppo.py | 80 | CODE | |
| LOW | stable_baselines3/a2c/a2c.py | 66 | CODE | |
| LOW | stable_baselines3/td3/td3.py | 83 | CODE | |
| LOW | stable_baselines3/td3/policies.py | 114 | CODE | |
| LOW | stable_baselines3/td3/policies.py | 283 | CODE | |
| LOW | stable_baselines3/td3/policies.py | 337 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | stable_baselines3/common/logger.py | 474 | # ================================================================ | COMMENT |
| MEDIUM | stable_baselines3/common/logger.py | 476 | # ================================================================ | COMMENT |
| MEDIUM | stable_baselines3/common/logger.py | 603 | # ---------------------------------------- | COMMENT |
| MEDIUM | stable_baselines3/common/logger.py | 629 | # ---------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 161 | # twine upload --repository-url https://test.pypi.org/legacy/ dist/* | COMMENT |
| LOW | docs/conf.py | 1 | # | COMMENT |
| LOW | docs/conf.py | 81 | extensions.append("sphinx_copybutton") | COMMENT |
| LOW | docs/conf.py | 121 | app.add_css_file("css/baselines_theme.css") | COMMENT |
| LOW | docs/conf.py | 141 | # 'searchbox.html']``. | COMMENT |
| LOW | docs/conf.py | 161 | # Additional stuff for the LaTeX preamble. | COMMENT |
| LOW | docs/conf.py | 221 | ] | COMMENT |
| LOW | docs/guide/callbacks.md | 21 | """ | COMMENT |
| LOW | docs/guide/vec_envs.md | 121 | # Do something, depending on the action and current value of mu the next state is computed | COMMENT |
| LOW | stable_baselines3/common/save_util.py | 101 | COMMENT | |
| LOW | stable_baselines3/her/her_replay_buffer.py | 201 | ) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_save_load.py | 139 | # Check if the model loads as expected for every possible choice of device: | COMMENT |
| LOW | tests/test_save_load.py | 267 | # Check if exclude works | COMMENT |
| LOW | tests/test_save_load.py | 276 | # Check if include works | COMMENT |
| LOW | stable_baselines3/common/base_class.py | 59 | # Set render_mode to `rgb_array` as default, so we can record video | COMMENT |
| LOW | stable_baselines3/common/base_class.py | 716 | # Check if given env is valid | COMMENT |
| LOW | stable_baselines3/common/utils.py | 18 | # Check if tensorboard is available for pytorch | COMMENT |
| LOW | stable_baselines3/common/save_util.py | 119 | # Check if serializable. If not, just include the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | stable_baselines3/common/env_checker.py | 546 | except NotImplementedError: | CODE |
| HIGH | stable_baselines3/common/utils.py | 624 | except ImportError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_callbacks.py | 68 | # but here in an event-driven manner | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | stable_baselines3/common/base_class.py | 608 | except Exception as e: | CODE |