A fast library for AutoML and tuning. Join our Discord: https://discord.gg/Cppx2vSPVP.
This report summarizes scanner evidence for microsoft/FLAML, a Jupyter Notebook project with 4,406 GitHub stars. SynthScan examined 68,057 lines of code across 374 source files, recording 808 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 16.1 (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? 457 finding(s).
Are imports declared and package/API names verified? 218 finding(s).
Are wrappers, guards, and repeated structures necessary? 408 finding(s).
Which changes need focused human review? 808 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 808 distinct pattern matches across 19 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 |
|---|---|---|---|---|
| HIGH | test/automl/test_model.py | 111 | except ValueError: | CODE |
| HIGH | test/automl/test_model.py | 122 | except ValueError: | CODE |
| HIGH | test/automl/test_split.py | 219 | except AssertionError: | CODE |
| HIGH | test/automl/test_notebook_example.py | 183 | except ImportError: | CODE |
| HIGH | test/automl/test_score.py | 221 | except NotImplementedError: | CODE |
| HIGH | test/automl/test_multiclass.py | 285 | except ImportError: | CODE |
| HIGH | test/automl/test_multiclass.py | 559 | except ImportError: | CODE |
| HIGH | test/automl/test_warmstart.py | 222 | except AssertionError: | CODE |
| HIGH | test/tune/test_searcher.py | 47 | except ValueError: | CODE |
| HIGH | test/tune/test_searcher.py | 74 | except AttributeError: | CODE |
| HIGH | test/tune/test_searcher.py | 86 | except ValueError: | CODE |
| HIGH | test/tune/test_searcher.py | 91 | except AttributeError: | CODE |
| HIGH | test/tune/test_searcher.py | 96 | except ValueError: | CODE |
| HIGH | test/tune/test_searcher.py | 101 | except TypeError: | CODE |
| HIGH | test/tune/test_searcher.py | 106 | except TypeError: | CODE |
| HIGH | test/tune/test_searcher.py | 111 | except ValueError: | CODE |
| HIGH | test/tune/test_searcher.py | 116 | except TypeError: | CODE |
| HIGH | test/tune/test_searcher.py | 121 | except ValueError: | CODE |
| HIGH | test/tune/test_searcher.py | 128 | except ValueError: | CODE |
| HIGH | test/tune/test_searcher.py | 140 | except ValueError: | CODE |
| HIGH | test/tune/test_searcher.py | 146 | except TypeError: | CODE |
| HIGH | test/tune/test_searcher.py | 152 | except TypeError: | CODE |
| HIGH | test/tune/test_searcher.py | 158 | except RuntimeError: | CODE |
| HIGH | test/tune/test_searcher.py | 163 | except RuntimeError: | CODE |
| HIGH | test/tune/test_searcher.py | 169 | except RuntimeError: | CODE |
| HIGH | test/tune/test_searcher.py | 174 | except RuntimeError: | CODE |
| HIGH | test/tune/test_searcher.py | 196 | except AssertionError: | CODE |
| HIGH | test/tune/test_space.py | 107 | except ValueError: | CODE |
| HIGH | test/tune/test_space.py | 121 | except TuneError: | CODE |
| HIGH | test/autogen/oai/test_completion.py | 36 | except ValueError: | CODE |
| HIGH | test/spark/test_mlflow.py | 24 | except ImportError: | CODE |
| HIGH | flaml/default/suggest.py | 15 | except ImportError: | CODE |
| HIGH | flaml/default/portfolio.py | 82 | except KeyError: # no "default" | CODE |
| HIGH | flaml/default/portfolio.py | 112 | except FileNotFoundError: | CODE |
| HIGH | flaml/automl/model.py | 106 | except ValueError: | CODE |
| HIGH | flaml/automl/model.py | 97 | except ValueError: | CODE |
| HIGH | flaml/automl/model.py | 117 | except ValueError: | CODE |
| HIGH | flaml/automl/ml.py | 31 | except ImportError: | CODE |
| HIGH | flaml/automl/automl.py | 1722 | except Exception: | CODE |
| HIGH | flaml/automl/automl.py | 2677 | except FileNotFoundError: | CODE |
| HIGH | flaml/automl/automl.py | 1522 | except Exception: | CODE |
| HIGH | flaml/automl/automl.py | 2664 | except FileNotFoundError: | CODE |
| HIGH | flaml/automl/automl.py | 1690 | except Exception: | CODE |
| HIGH | flaml/automl/data.py | 27 | except ImportError: | CODE |
| HIGH | flaml/automl/data.py | 862 | except Exception: | CODE |
| HIGH | flaml/automl/data.py | 852 | except TypeError: | CODE |
| HIGH | flaml/automl/data.py | 832 | except Exception: | CODE |
| HIGH | flaml/automl/task/time_series_task.py | 494 | except ImportError: | CODE |
| HIGH | flaml/automl/task/generic_task.py | 24 | except ImportError: | CODE |
| HIGH | flaml/automl/task/generic_task.py | 37 | except ImportError: | CODE |
| HIGH | flaml/automl/task/generic_task.py | 1345 | except ImportError: | CODE |
| HIGH | flaml/onlineml/trial.py | 14 | except ImportError: | CODE |
| HIGH | flaml/fabric/mlflow.py | 257 | except Exception: | CODE |
| HIGH | flaml/fabric/mlflow.py | 372 | except Exception: | CODE |
| HIGH | flaml/fabric/mlflow.py | 422 | except mlflow.exceptions.MlflowException: | CODE |
| HIGH | flaml/autogen/oai/completion.py | 950 | except ValueError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/conftest.py | 22 | def evaluate_cv_folds_with_underlying_model(X_train_all, y_train_all, kf, model: Any, task: str) -> List[float]: | CODE |
| LOW | test/test_autovw.py | 377 | def test_vw_oml_problem_and_vanilla_vw(self): | CODE |
| LOW | test/test_autovw.py | 392 | def test_supervised_vw_tune_namespace(self): | CODE |
| LOW | test/test_autovw.py | 415 | def test_supervised_vw_tune_namespace_learningrate(self): | CODE |
| LOW | test/test_autovw.py | 441 | def test_bandit_vw_tune_namespace(self): | CODE |
| LOW | test/test_autovw.py | 444 | def test_bandit_vw_tune_namespace_learningrate(self): | CODE |
| LOW | test/default/test_defaults.py | 72 | def test_suggest_classification(): | CODE |
| LOW | test/automl/test_extra_models.py | 180 | def _test_sparse_matrix_classification(estimator): | CODE |
| LOW | test/automl/test_extra_models.py | 219 | def test_load_multi_dataset_aggregates_without_resample(): | CODE |
| LOW | test/automl/test_split.py | 58 | def test_time_split_with_sample_weight(): | CODE |
| LOW | test/automl/test_split.py | 80 | def test_group_split_with_sample_weight_alignment(): | CODE |
| LOW | test/automl/test_split.py | 131 | def test_group_split_with_sample_weight_series_alignment(): | CODE |
| LOW | test/automl/test_split.py | 189 | def test_groups_for_classification_task(): | CODE |
| LOW | test/automl/test_split.py | 227 | def test_groups_for_regression_task(): | CODE |
| LOW | test/automl/test_split.py | 256 | def test_groups_with_sample_weights(): | CODE |
| LOW | test/automl/test_split.py | 297 | def test_stratified_groupkfold(): | CODE |
| LOW | test/automl/test_resampler.py | 88 | def test_resampler_hook_fires_per_fold_and_balances_train(): | CODE |
| LOW | test/automl/test_resampler.py | 109 | def test_resampler_runs_on_final_fit_with_max_iter_one(): | CODE |
| LOW | test/automl/test_resampler.py | 126 | def test_resampler_with_ensemble_raises(): | CODE |
| LOW | test/automl/test_resampler.py | 143 | def test_resampler_disables_auto_augment_for_rare_classes(): | CODE |
| LOW | test/automl/test_resampler.py | 162 | def test_resampler_leaves_validation_untouched(): | CODE |
| LOW | test/automl/test_resampler.py | 195 | def test_resampler_with_sample_weight_raises(): | CODE |
| LOW | test/automl/test_resampler.py | 210 | def test_resampler_with_groups_raises(): | CODE |
| LOW | test/automl/test_resampler.py | 225 | def test_resampler_with_sample_weight_by_estimator_raises(): | CODE |
| LOW | test/automl/test_resampler.py | 242 | def test_resampler_with_configured_sample_weight_by_estimator_raises(): | CODE |
| LOW | test/automl/test_resampler.py | 256 | def test_resampler_without_fit_resample_raises(): | CODE |
| LOW | test/automl/test_resampler.py | 267 | def test_resampler_with_noncallable_fit_resample_raises(): | CODE |
| LOW | test/automl/test_resampler.py | 278 | def test_resampler_not_cloneable_raises(): | CODE |
| LOW | test/automl/test_resampler.py | 298 | def test_resampler_none_is_default_and_noop(): | CODE |
| LOW | test/automl/test_resampler.py | 313 | def test_resampler_from_constructor_settings(): | CODE |
| LOW | test/automl/test_resampler.py | 323 | def test_resampler_does_not_leak_across_fits(): | CODE |
| LOW | test/automl/test_resampler.py | 341 | def test_retrain_from_log_with_resampler(tmp_path): | CODE |
| LOW | test/automl/test_resampler.py | 378 | def test_resampler_holdout_rejects_singleton(split_type, allow_label_overlap): | CODE |
| LOW | test/automl/test_resampler.py | 393 | def test_resampler_holdout_has_disjoint_rows(split_type): | CODE |
| LOW | test/automl/test_resampler.py | 418 | def test_resampler_accepts_null_weights(eval_method, source): | CODE |
| LOW | test/automl/test_resampler.py | 434 | def test_resampler_smote_integration(): | CODE |
| LOW | test/automl/test_sklearn_17_compat.py | 19 | def test_extra_trees_regressor_type(): | CODE |
| LOW | test/automl/test_sklearn_17_compat.py | 26 | def test_extra_trees_classifier_type(): | CODE |
| LOW | test/automl/test_sklearn_17_compat.py | 37 | def test_random_forest_regressor_type(): | CODE |
| LOW | test/automl/test_sklearn_17_compat.py | 44 | def test_random_forest_classifier_type(): | CODE |
| LOW⚡ | test/automl/test_sklearn_17_compat.py | 58 | def test_lgbm_classifier_type(): | CODE |
| LOW⚡ | test/automl/test_sklearn_17_compat.py | 65 | def test_xgboost_regressor_type(): | CODE |
| LOW⚡ | test/automl/test_sklearn_17_compat.py | 72 | def test_xgboost_classifier_type(): | CODE |
| LOW | test/automl/test_free_mem_ratio.py | 9 | def test_free_mem_ratio_reaches_the_search(): | CODE |
| LOW | test/automl/test_free_mem_ratio.py | 44 | def test_free_mem_ratio_reaches_the_search_holdout(): | CODE |
| LOW | test/automl/test_forecast.py | 127 | def test_simple_forecaster_sets_initialization_method(monkeypatch): | CODE |
| LOW | test/automl/test_forecast.py | 160 | def test_average_forecasters_set_training_boundary(estimator_name): | CODE |
| LOW | test/automl/test_forecast.py | 225 | def test_statsmodels_future_forecast_uses_training_boundary(): | CODE |
| LOW | test/automl/test_forecast.py | 249 | def test_statsmodels_delayed_future_forecast(): | CODE |
| LOW | test/automl/test_forecast.py | 272 | def test_statsmodels_delayed_future_forecast_requires_exog(): | CODE |
| LOW | test/automl/test_forecast.py | 294 | def test_statsmodels_generated_exog_fills_future_gap(): | CODE |
| LOW | test/automl/test_forecast.py | 322 | def test_statsmodels_rejects_mixed_training_and_future_periods(): | CODE |
| LOW | test/automl/test_forecast.py | 361 | def test_multivariate_forecast_num(budget=5, estimators_when_no_prophet=["arima", "sarimax", "holt-winters"]): | CODE |
| LOW | test/automl/test_forecast.py | 491 | def test_multivariate_forecast_cat(budget=5, estimators_when_no_prophet=["arima", "sarimax", "holt-winters"]): | CODE |
| LOW | test/automl/test_forecast.py | 569 | def test_forecast_classification(budget=5): | CODE |
| LOW | test/automl/test_forecast.py | 847 | def test_log_training_metric_ts_models(): | CODE |
| LOW | test/automl/test_binary_metric_on_multiclass.py | 8 | def test_binary_only_metric_on_multiclass_raises(metric): | CODE |
| LOW | test/automl/test_constraints.py | 95 | def test_metric_constraints_custom(): | CODE |
| LOW | test/automl/test_preprocess_api.py | 16 | def test_automl_preprocess_before_fit(self): | CODE |
| LOW | test/automl/test_preprocess_api.py | 26 | def test_automl_preprocess_classification(self): | CODE |
| 201 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/conftest.py | 1 | CODE | |
| LOW | test/conftest.py | 1 | CODE | |
| LOW | test/conftest.py | 4 | CODE | |
| LOW | test/test_autovw.py | 4 | CODE | |
| LOW | test/automl/test_extra_models.py | 24 | CODE | |
| LOW | test/automl/test_sklearn_17_compat.py | 8 | CODE | |
| LOW | test/automl/test_free_mem_ratio.py | 1 | CODE | |
| LOW | test/automl/test_forecast.py | 641 | CODE | |
| LOW | test/automl/test_forecast.py | 37 | CODE | |
| LOW | test/automl/test_forecast.py | 385 | CODE | |
| LOW | test/automl/test_forecast.py | 510 | CODE | |
| LOW | test/automl/test_forecast.py | 835 | CODE | |
| LOW | test/automl/test_custom_hp.py | 9 | CODE | |
| LOW | test/automl/test_score.py | 39 | CODE | |
| LOW | test/automl/test_warmstart.py | 180 | CODE | |
| LOW | test/automl/test_no_overlap.py | 3 | CODE | |
| LOW | test/pipeline_tuning_example/train/train.py | 5 | CODE | |
| LOW | test/tune/test_searcher.py | 324 | CODE | |
| LOW | test/tune/example_scheduler.py | 1 | CODE | |
| LOW | test/tune/test_sample.py | 6 | CODE | |
| LOW | test/tune/test_sample.py | 6 | CODE | |
| LOW | test/tune/test_sample.py | 6 | CODE | |
| LOW | test/tune/test_sample.py | 6 | CODE | |
| LOW | test/tune/test_sample.py | 6 | CODE | |
| LOW | test/tune/test_lexiflow.py | 3 | CODE | |
| LOW | test/tune/test_flaml_raytune_consistency.py | 6 | CODE | |
| LOW | test/tune/test_tune.py | 6 | CODE | |
| LOW | test/tune/test_tune.py | 9 | CODE | |
| LOW | test/tune/test_tune.py | 117 | CODE | |
| LOW | test/tune/test_search_thread.py | 3 | CODE | |
| LOW | test/nlp/test_autohf_cv.py | 9 | CODE | |
| LOW | test/nlp/test_default.py | 11 | CODE | |
| LOW | test/nlp/test_autohf_classificationhead.py | 13 | CODE | |
| LOW | test/nlp/test_autohf_classificationhead.py | 13 | CODE | |
| LOW | test/nlp/test_autohf_classificationhead.py | 13 | CODE | |
| LOW | test/nlp/test_autohf_classificationhead.py | 9 | CODE | |
| LOW | test/nlp/test_autohf_multichoice_classification.py | 9 | CODE | |
| LOW | test/nni/mnist.py | 13 | CODE | |
| LOW | test/autogen/test_code.py | 238 | CODE | |
| LOW | test/autogen/test_notebook.py | 7 | CODE | |
| LOW | test/autogen/agentchat/test_async.py | 51 | CODE | |
| LOW | test/autogen/agentchat/test_math_user_proxy_agent.py | 20 | CODE | |
| LOW | test/autogen/agentchat/test_assistant_agent.py | 20 | CODE | |
| LOW | test/autogen/agentchat/test_assistant_agent.py | 64 | CODE | |
| LOW | test/autogen/agentchat/test_assistant_agent.py | 118 | CODE | |
| LOW | test/autogen/agentchat/test_assistant_agent.py | 161 | CODE | |
| LOW | test/autogen/agentchat/extensions/tsp.py | 5 | CODE | |
| LOW | test/autogen/agentchat/extensions/tsp.py | 6 | CODE | |
| LOW | test/autogen/agentchat/extensions/tsp.py | 8 | CODE | |
| LOW | test/autogen/agentchat/extensions/tsp.py | 9 | CODE | |
| LOW | test/autogen/oai/test_completion.py | 123 | CODE | |
| LOW | test/autogen/oai/test_completion.py | 212 | CODE | |
| LOW | test/autogen/oai/test_completion.py | 331 | CODE | |
| LOW | test/spark/test_utils.py | 17 | CODE | |
| LOW | test/spark/test_overtime.py | 11 | CODE | |
| LOW | test/spark/test_overtime.py | 13 | CODE | |
| LOW | test/spark/test_multiclass.py | 23 | CODE | |
| LOW | test/spark/test_mlflow.py | 3 | CODE | |
| LOW | test/spark/test_mlflow.py | 11 | CODE | |
| LOW | test/spark/test_mlflow.py | 22 | CODE | |
| 154 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/test_autovw.py | 45 | CODE | |
| LOW | test/automl/test_training_log.py | 14 | CODE | |
| LOW | test/automl/test_forecast.py | 441 | CODE | |
| LOW | test/automl/test_forecast.py | 447 | CODE | |
| LOW | test/tune/test_pytorch_cifar10.py | 189 | CODE | |
| LOW | test/tune/test_scheduler.py | 56 | CODE | |
| LOW | test/tune/test_tune.py | 115 | CODE | |
| LOW | test/nlp/test_autohf.py | 15 | CODE | |
| LOW | test/nlp/test_autohf_tokenclassification.py | 18 | CODE | |
| LOW | test/nlp/test_autohf_tokenclassification.py | 71 | CODE | |
| LOW | test/autogen/test_notebook.py | 17 | CODE | |
| LOW | flaml/default/suggest.py | 23 | CODE | |
| LOW | flaml/automl/model.py | 391 | CODE | |
| LOW | flaml/automl/model.py | 1475 | CODE | |
| LOW | flaml/automl/model.py | 1569 | CODE | |
| LOW | flaml/automl/model.py | 2123 | CODE | |
| LOW | flaml/automl/model.py | 2258 | CODE | |
| LOW | flaml/automl/ml.py | 99 | CODE | |
| LOW | flaml/automl/ml.py | 197 | CODE | |
| LOW | flaml/automl/automl.py | 1011 | CODE | |
| LOW | flaml/automl/automl.py | 1441 | CODE | |
| LOW | flaml/automl/automl.py | 1694 | CODE | |
| LOW | flaml/automl/automl.py | 1862 | CODE | |
| LOW | flaml/automl/automl.py | 2775 | CODE | |
| LOW | flaml/automl/automl.py | 2971 | CODE | |
| LOW | flaml/automl/automl.py | 3265 | CODE | |
| LOW | flaml/automl/automl.py | 3534 | CODE | |
| LOW | flaml/automl/automl.py | 1470 | CODE | |
| LOW | flaml/automl/automl.py | 1510 | CODE | |
| LOW | flaml/automl/data.py | 151 | CODE | |
| LOW | flaml/automl/data.py | 635 | CODE | |
| LOW | flaml/automl/data.py | 753 | CODE | |
| LOW | flaml/automl/data.py | 269 | CODE | |
| LOW | flaml/automl/data.py | 410 | CODE | |
| LOW | flaml/automl/state.py | 57 | CODE | |
| LOW | flaml/automl/task/time_series_task.py | 96 | CODE | |
| LOW | flaml/automl/task/generic_task.py | 103 | CODE | |
| LOW | flaml/automl/task/generic_task.py | 309 | CODE | |
| LOW | flaml/automl/task/generic_task.py | 369 | CODE | |
| LOW | flaml/automl/task/generic_task.py | 501 | CODE | |
| LOW | flaml/automl/task/generic_task.py | 828 | CODE | |
| LOW | flaml/automl/task/generic_task.py | 1096 | CODE | |
| LOW | flaml/automl/task/generic_task.py | 1132 | CODE | |
| LOW | flaml/automl/task/generic_task.py | 1161 | CODE | |
| LOW | flaml/automl/task/generic_task.py | 1294 | CODE | |
| LOW | flaml/automl/task/generic_task.py | 1374 | CODE | |
| LOW | flaml/automl/nlp/utils.py | 14 | CODE | |
| LOW | flaml/automl/nlp/utils.py | 38 | CODE | |
| LOW | flaml/automl/nlp/huggingface/utils.py | 26 | CODE | |
| LOW | flaml/automl/nlp/huggingface/utils.py | 79 | CODE | |
| LOW | flaml/automl/nlp/huggingface/utils.py | 312 | CODE | |
| LOW | flaml/automl/nlp/huggingface/utils.py | 375 | CODE | |
| LOW | flaml/automl/nlp/huggingface/utils.py | 388 | CODE | |
| LOW | flaml/automl/time_series/ts_data.py | 229 | CODE | |
| LOW | flaml/automl/time_series/ts_data.py | 385 | CODE | |
| LOW | flaml/automl/time_series/ts_model.py | 336 | CODE | |
| LOW | flaml/automl/spark/metrics.py | 50 | CODE | |
| LOW | flaml/automl/spark/utils.py | 26 | CODE | |
| LOW | flaml/automl/spark/utils.py | 179 | CODE | |
| LOW | flaml/tune/trial.py | 24 | CODE | |
| 55 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/automl/test_regression.py | 304 | except Exception: | CODE |
| LOW | test/nni/mnist.py | 210 | except Exception as exception: | CODE |
| LOW | flaml/automl/ml.py | 137 | except Exception: | CODE |
| LOW | flaml/automl/automl.py | 488 | except Exception: | CODE |
| LOW | flaml/automl/automl.py | 544 | except Exception as e: | CODE |
| LOW | flaml/automl/automl.py | 1489 | except Exception: | CODE |
| LOW | flaml/automl/automl.py | 1504 | except Exception: | CODE |
| LOW | flaml/automl/automl.py | 1522 | except Exception: | CODE |
| LOW | flaml/automl/automl.py | 1633 | except Exception as e: | CODE |
| LOW | flaml/automl/automl.py | 1653 | except Exception: | CODE |
| LOW | flaml/automl/automl.py | 1690 | except Exception: | CODE |
| LOW | flaml/automl/automl.py | 1722 | except Exception: | CODE |
| LOW | flaml/automl/automl.py | 1755 | except Exception as e: | CODE |
| LOW | flaml/automl/automl.py | 1773 | except Exception as e: | CODE |
| LOW | flaml/automl/automl.py | 3510 | except Exception as e: | CODE |
| LOW | flaml/automl/automl.py | 3517 | except Exception as e: | CODE |
| LOW | flaml/automl/data.py | 832 | except Exception: | CODE |
| LOW | flaml/automl/data.py | 862 | except Exception: | CODE |
| LOW | flaml/automl/task/time_series_task.py | 155 | except Exception: | CODE |
| LOW | flaml/automl/time_series/ts_model.py | 410 | except Exception as e: | CODE |
| LOW | flaml/automl/spark/__init__.py | 59 | except Exception: | CODE |
| LOW | flaml/automl/spark/__init__.py | 75 | except Exception: | CODE |
| LOW | flaml/automl/spark/__init__.py | 95 | except Exception: | CODE |
| LOW | flaml/automl/spark/utils.py | 65 | except Exception: | CODE |
| LOW | flaml/tune/searcher/suggestion.py | 97 | except Exception: # pragma: no cover | CODE |
| LOW | flaml/tune/searcher/suggestion.py | 824 | except Exception as exc: | CODE |
| LOW | flaml/tune/searcher/blendsearch.py | 231 | except Exception: | CODE |
| MEDIUM | flaml/fabric/mlflow.py | 135 | def get_mlflow_log_latency(model_history=False, delete_run=True): | CODE |
| LOW | flaml/fabric/mlflow.py | 257 | except Exception: | CODE |
| LOW | flaml/fabric/mlflow.py | 290 | except Exception as e: | CODE |
| LOW | flaml/fabric/mlflow.py | 372 | except Exception: | CODE |
| LOW | flaml/fabric/mlflow.py | 572 | except Exception as e: | CODE |
| LOW | flaml/autogen/math_utils.py | 42 | except Exception: | CODE |
| LOW | flaml/autogen/math_utils.py | 99 | except Exception: | CODE |
| LOW | flaml/autogen/math_utils.py | 136 | except Exception: | CODE |
| LOW | flaml/autogen/math_utils.py | 279 | except Exception: | CODE |
| LOW | flaml/autogen/agentchat/conversable_agent.py | 975 | except Exception as e: | CODE |
| LOW | …aml/autogen/agentchat/contrib/math_user_proxy_agent.py | 417 | except Exception: | CODE |
| LOW | …aml/autogen/agentchat/contrib/math_user_proxy_agent.py | 446 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/tune/test_space.py | 21 | # Sample a float uniformly between 0.0001 and 0.1, while | COMMENT |
| LOW | test/tune/test_restore.py | 81 | COMMENT | |
| LOW | test/autogen/test_code.py | 21 | # def test_find_code(): | COMMENT |
| LOW | test/autogen/test_code.py | 41 | # # "gpt-3.5-turbo-16k-0613", | COMMENT |
| LOW | test/autogen/test_code.py | 61 | # print('Hello, World! printed to hello.txt') | COMMENT |
| LOW | test/autogen/test_code.py | 81 | # }, | COMMENT |
| LOW | test/autogen/test_code.py | 101 | # Please execute the above Python code to save a pandas df with 3 rows and 3 columns to disk. | COMMENT |
| LOW | test/autogen/test_code.py | 121 | # "role": "user", | COMMENT |
| LOW | test/autogen/agentchat/test_conversable_agent.py | 181 | # test_context() | COMMENT |
| LOW | test/autogen/agentchat/test_assistant_agent.py | 201 | test_gpt35() | COMMENT |
| LOW | test/spark/test_utils.py | 441 | # test ndcg | COMMENT |
| LOW | test/spark/test_mlflow.py | 341 | # test_tune_autolog_parentrun_nonparallel() | COMMENT |
| LOW | test/spark/test_0sparkml.py | 421 | # cProfile.run("_test_spark_large_df()", "_test_spark_large_df.profile") | COMMENT |
| LOW | website/docusaurus.config.js | 61 | { | COMMENT |
| LOW | website/docs/Use-Cases/Tune-User-Defined-Function.md | 161 | # mean=10 and sd=2 | COMMENT |
| LOW | website/src/components/HomepageFeatures.js | 21 | description: ( | COMMENT |
| LOW | flaml/default/portfolio.py | 141 | # for i, task in enumerate(neighbors): | COMMENT |
| LOW | flaml/automl/model.py | 741 | # ) and n_iter > 1: | COMMENT |
| LOW | flaml/automl/model.py | 761 | # if ( | COMMENT |
| LOW | flaml/automl/task/generic_task.py | 1341 | try: | COMMENT |
| LOW | flaml/automl/time_series/sklearn.py | 161 | # TODO: do we want auto-clipping? | COMMENT |
| LOW | flaml/automl/time_series/sklearn.py | 181 | # **{col: X[col] != "" for col in X.filter(like="_holiday_").columns} | COMMENT |
| LOW | flaml/tune/trial.py | 1 | # Copyright 2020 The Ray Authors. | COMMENT |
| LOW | flaml/tune/analysis.py | 1 | # Copyright 2020 The Ray Authors. | COMMENT |
| LOW | flaml/tune/result.py | 1 | # Copyright 2020 The Ray Authors. | COMMENT |
| LOW | flaml/tune/sample.py | 1 | # Copyright 2020 The Ray Authors. | COMMENT |
| LOW | flaml/tune/space.py | 141 | # for key, domain in space.items(): | COMMENT |
| LOW | flaml/tune/searcher/variant_generator.py | 1 | # Copyright 2020 The Ray Authors. | COMMENT |
| LOW | flaml/tune/searcher/suggestion.py | 1 | # Copyright 2020 The Ray Authors. | COMMENT |
| LOW | flaml/tune/searcher/online_searcher.py | 61 | COMMENT | |
| LOW | flaml/tune/scheduler/trial_scheduler.py | 1 | # Copyright 2020 The Ray Authors. | COMMENT |
| LOW | flaml/onlineml/trial_runner.py | 21 | # The max number of Trial.RUNNING trials is running_budget. | COMMENT |
| LOW | flaml/onlineml/trial_runner.py | 41 | Args: | COMMENT |
| LOW | flaml/onlineml/trial_runner.py | 61 | # It adds candidate trials to the scheduler. It is called inside of the add_trial | COMMENT |
| LOW | flaml/autogen/code_utils.py | 61 | # "content": """In the following conversation, an assistant suggests code and a user is expected to run it. | COMMENT |
| LOW | flaml/autogen/code_utils.py | 81 | COMMENT | |
| LOW | flaml/autogen/code_utils.py | 321 | while container.status != "exited" and time.time() - start_time < timeout: | COMMENT |
| LOW | flaml/autogen/code_utils.py | 541 | # for i, config in enumerate(configs): | COMMENT |
| LOW | …autogen/agentchat/contrib/retrieve_user_proxy_agent.py | 281 | else: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/test_autovw.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | test/pipeline_tuning_example/tuner/tuner_func.py | 9 | logger = logging.getLogger(__name__) | CODE |
| LOW | test/pipeline_tuning_example/data_prep/data_prep.py | 8 | logger = logging.getLogger(__name__) | CODE |
| LOW | test/tune/test_pytorch_cifar10.py | 9 | logger = logging.getLogger(__name__) | CODE |
| LOW | test/tune/test_tune.py | 23 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/__init__.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/default/suggest.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/automl/logger.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/automl/ml.py | 38 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/automl/task/time_series_task.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/automl/task/generic_task.py | 40 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/automl/spark/__init__.py | 50 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/automl/spark/utils.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/tune/analysis.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/tune/trial_runner.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/tune/logger.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/tune/sample.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/tune/space.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/tune/searcher/variant_generator.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/tune/searcher/suggestion.py | 108 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/tune/searcher/blendsearch.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/tune/searcher/online_searcher.py | 11 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/tune/searcher/flow2.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/tune/searcher/search_thread.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/tune/scheduler/online_scheduler.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/tune/spark/__init__.py | 8 | __all__ = ["check_spark", "get_n_cpus", "with_parameters", "broadcast_code"] | CODE |
| LOW | flaml/tune/spark/utils.py | 8 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/onlineml/trial.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/onlineml/trial_runner.py | 9 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/onlineml/autovw.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/autogen/retrieve_utils.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/autogen/agentchat/__init__.py | 7 | __all__ = [ | CODE |
| LOW | flaml/autogen/oai/completion.py | 34 | logger = logging.getLogger(__name__) | CODE |
| LOW | flaml/autogen/oai/__init__.py | 10 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/automl/test_custom_hp.py | 83 | # Create a simple regression dataset | COMMENT |
| MEDIUM | test/automl/test_preprocess_api.py | 78 | # Create a simple dataset | COMMENT |
| MEDIUM | test/automl/test_preprocess_api.py | 221 | # Create a simple estimator | COMMENT |
| MEDIUM | test/automl/test_multiclass.py | 202 | # Create a LogisticRegression with specific non-default parameters | COMMENT |
| MEDIUM | test/automl/test_no_overlap.py | 156 | # Create a simple dataset | COMMENT |
| MEDIUM | test/nni/mnist.py | 1 | # This file is copied from NNI project | COMMENT |
| MEDIUM | test/spark/test_0sparkml.py | 347 | # Create a test DataFrame with various types | COMMENT |
| MEDIUM | test/spark/test_0sparkml.py | 375 | # Create a test DataFrame with various types | COMMENT |
| MEDIUM | flaml/automl/time_series/tcn.py | 1 | # This file is adapted from | COMMENT |
| MEDIUM | flaml/automl/spark/metrics.py | 35 | # Create a new column 'prediction' based on the maximum probability value | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | test/spark/test_utils.py | 267 | assert d1.equals(d2) | STRING |
| HIGH⚡ | test/spark/test_utils.py | 270 | assert d1.equals(d2) | STRING |
| HIGH⚡ | flaml/automl/state.py | 32 | (1) If the type of the starting point does not match the required type in search space, return false | STRING |
| HIGH⚡ | flaml/automl/state.py | 33 | (2) If the starting point is not in the required search space, return false | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | flaml/automl/automl.py | 920 | Preprocess data using task-level preprocessing. This method applies task-level preprocessing transformations to | STRING |
| HIGH | flaml/automl/task/task.py | 216 | Choose an appropriate data split type for this data and task. If split_type is 'auto' then this is determined b | STRING |
| HIGH | flaml/automl/task/task.py | 331 | Determine the estimator class corresponding to the provided name. Args: estimator_name: Name of the | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | test/automl/test_regression.py | 0 | xgboostestimator with the logregobj function as the objective function | STRING |
| HIGH | website/docs/Use-Cases/Task-Oriented-AutoML.md | 0 | xgboostestimator with the logregobj function as the objective function | STRING |
| HIGH | website/docs/Examples/AutoML-for-XGBoost.md | 0 | xgboostestimator with the logregobj function as the objective function | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/automl/test_forecast.py | 466 | CODE | |
| LOW | test/spark/test_tune.py | 33 | CODE | |
| LOW | flaml/automl/automl.py | 1011 | CODE | |
| LOW | flaml/automl/automl.py | 1862 | CODE | |
| LOW | flaml/automl/nlp/huggingface/utils.py | 283 | CODE | |
| LOW | flaml/tune/tune.py | 235 | CODE | |
| LOW | flaml/tune/searcher/blendsearch.py | 44 | CODE | |
| LOW | flaml/tune/searcher/flow2.py | 44 | CODE | |
| LOW | flaml/onlineml/autovw.py | 26 | CODE | |
| LOW | flaml/fabric/mlflow.py | 77 | CODE | |
| LOW | flaml/fabric/mlflow.py | 273 | CODE | |
| LOW | flaml/autogen/retrieve_utils.py | 184 | CODE | |
| LOW | flaml/autogen/agentchat/conversable_agent.py | 46 | CODE | |
| LOW | flaml/autogen/agentchat/user_proxy_agent.py | 19 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/default/test_defaults.py | 278 | # make sure that zero-shot config out of the search space does not degnerate to low cost init config | COMMENT |
| MEDIUM | test/default/test_defaults.py | 280 | # make sure that the zero-shot config {} is not modified | COMMENT |
| MEDIUM | website/docs/Use-Cases/Task-Oriented-AutoML.md | 669 | `starting_points` is a dictionary or a str to specify the starting hyperparameter config. (1) When it is a dictionary, t | CODE |
| MEDIUM | website/docs/Use-Cases/Zero-Shot-AutoML.md | 90 | ### Combine zero shot AutoML and hyperparameter tuning | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/automl/test_training_log.py | 37 | # Check if the training log file is populated. | COMMENT |
| LOW | test/automl/test_python_log.py | 107 | # Check if the log buffer is populated. | COMMENT |
| LOW | flaml/automl/model.py | 1213 | # Check if processing_class parameter is supported (transformers >= 4.44.0) | COMMENT |
| LOW | flaml/automl/data.py | 698 | # Check if timestamp | COMMENT |
| LOW | flaml/automl/data.py | 724 | # Check if timestamp | COMMENT |
| LOW | flaml/tune/spark/utils.py | 165 | # Check if Spark is available | COMMENT |
| LOW | …aml/autogen/agentchat/contrib/math_user_proxy_agent.py | 233 | # Check if there is any print statement | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/autogen/oai/test_completion.py | 280 | # a more comprehensive tuning example | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | flaml/automl/time_series/sklearn.py | 171 | # ---------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/nlp/test_default.py | 167 | # TODO: implement _test_zero_shot_model | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | flaml/onlineml/trial_runner.py | 115 | # NOTE: This function consists of the following several parts: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | flaml/autogen/code_utils.py | 65 | # When the user needs to run multiple blocks in sequence, make sure to output all the blocks to run in a right order. | COMMENT |