AI Slop Code RIsk Monitor

unit8co/darts

A python library for user-friendly forecasting and anomaly detection on time series.

22.9 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for unit8co/darts, a Python project with 9,540 GitHub stars. SynthScan examined 176,862 lines of code across 353 source files, recording 2540 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 22.9 (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.

22.9
Adjusted Signal
22.9
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
9.5K
Stars
Python
Language
176.9K
Lines of Code
353
Files
2.5K
Pattern Hits
2026-10-12
Scan Date
1.01
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 39.0/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 1820 finding(s).

Hallucinated Dependency & Supply Chain Risk 40.6/100 · MEDIUM

Are imports declared and package/API names verified? 584 finding(s).

Agent Over-Engineering Ratio 42.6/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 1794 finding(s).

PR Review Velocity Impact 71.3/100 · HIGH

Which changes need focused human review? 2540 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 355MEDIUM 50LOW 2135

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 2540 distinct pattern matches across 17 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.

Cross-Language Confusion290 hits · 1589 pts
SeverityFileLineSnippetContext
HIGH⚡darts/timeseries.py5335 if not self._time_index.equals(other._time_index):CODE
HIGH⚡darts/timeseries.py5341 if not self.components.equals(other.components):CODE
HIGH⚡darts/timeseries.py5347 elif isinstance(sc_self, pd.DataFrame) and not sc_self.equals(sc_other):CODE
HIGHdarts/timeseries.py5947 ts.static_covariates.columns.equals(series[0].static_covariates.columns)CODE
HIGHdarts/metrics/metrics.py1536 When :math:`y_t = 0` for some :math:`t` the term is undefined; the behavior is then controlled bySTRING
HIGHdarts/metrics/metrics.py1657 When :math:`y_t = 0` for some :math:`t` the term is undefined; the behavior is then controlled bySTRING
HIGHdarts/metrics/utils.py493 if not pred_series.components.equals(actual_series.components):CODE
HIGHdarts/metrics/utils.py501 if not predicted_components.equals(actual_series.components):CODE
HIGHdarts/metrics/utils.py890 undefined, so the entry is set to ``np.nan``.STRING
HIGH⚡darts/tests/test_timeseries.py110 assert ts_pd_series.equals(pd_series)CODE
HIGH⚡darts/tests/test_timeseries.py117 assert ts_pd_df.equals(pd_df)CODE
HIGH⚡darts/tests/test_timeseries.py120 assert ts_pd_df.equals(pd_df.reset_index())CODE
HIGH⚡darts/tests/test_timeseries.py165 assert ts_pl_df.equals(pl_df)CODE
HIGH⚡darts/tests/test_timeseries.py175 assert ts_pl_df_2.equals(pl_df)CODE
HIGH⚡darts/tests/test_timeseries.py229 assert series.time_index.equals(pd.RangeIndex(stop=1))CODE
HIGH⚡darts/tests/test_timeseries.py232 assert series.time_index.equals(pd.RangeIndex(start=10, stop=11))CODE
HIGH⚡darts/tests/test_timeseries.py236 assert series.time_index.equals(pd.RangeIndex(start=10, stop=20))CODE
HIGH⚡darts/tests/test_timeseries.py240 assert series.time_index.equals(pd.RangeIndex(start=10, stop=50))CODE
HIGH⚡darts/tests/test_timeseries.py244 assert series.time_index.equals(pd.RangeIndex(start=10, stop=40))CODE
HIGH⚡darts/tests/test_timeseries.py248 assert series.time_index.equals(pd.RangeIndex(start=10, stop=40, step=4))CODE
HIGH⚡darts/tests/test_timeseries.py252 assert series.time_index.equals(pd.RangeIndex(start=0, stop=0, step=1))CODE
HIGH⚡darts/tests/test_timeseries.py607 assert series.slice_n_points_after(idx[2], 3).time_index.equals(times[2:5])CODE
HIGH⚡darts/tests/test_timeseries.py608 assert series.slice_n_points_before(idx[5], 3).time_index.equals(times[3:6])CODE
HIGH⚡darts/tests/test_timeseries.py611 assert series.slice_n_points_after(idx[8], 5).time_index.equals(times[8:])CODE
HIGH⚡darts/tests/test_timeseries.py612 assert series.slice_n_points_before(idx[1], 5).time_index.equals(times[:2])CODE
HIGH⚡darts/tests/test_timeseries.py617 assert sliced.time_index.equals(pd.RangeIndex(16, 20, 2))CODE
HIGH⚡darts/tests/test_timeseries.py619 assert sliced.time_index.equals(pd.RangeIndex(12, 16, 2))CODE
HIGH⚡darts/tests/test_timeseries.py874 assert prepended.time_index.equals(expected_idx)CODE
HIGH⚡darts/tests/test_timeseries.py875 assert prepended.components.equals(series_2.components)CODE
HIGH⚡darts/tests/test_timeseries.py2183 assert result.time_index.equals(times[3:7])CODE
HIGH⚡darts/tests/test_timeseries.py2188 assert result.time_index.equals(times[2:8])CODE
HIGH⚡darts/tests/test_timeseries.py2192 assert series.longest_contiguous_slice().time_index.equals(times[1:8])CODE
HIGH⚡darts/tests/test_timeseries.py2196 assert series.longest_contiguous_slice().time_index.equals(times[:1])CODE
HIGH⚡darts/tests/test_timeseries.py2737 assert test_series.time_index.equals(appended.time_index)CODE
HIGH⚡darts/tests/test_timeseries.py2738 assert appended.components.equals(seriesA.components)CODE
HIGH⚡darts/tests/test_timeseries.py2757 assert test_series.time_index.equals(appended.time_index)CODE
HIGH⚡darts/tests/test_timeseries.py2763 assert test_series.time_index.equals(appended_sq.time_index)CODE
HIGH⚡darts/tests/test_timeseries.py2764 assert appended_sq.components.equals(seriesA.components)CODE
HIGH⚡darts/tests/test_timeseries.py2773 assert test_series.time_index.equals(prepended.time_index)CODE
HIGH⚡darts/tests/test_timeseries.py2774 assert prepended.components.equals(seriesB.components)CODE
HIGH⚡darts/tests/test_timeseries.py2793 assert test_series.time_index.equals(prepended.time_index)CODE
HIGH⚡darts/tests/test_timeseries.py2794 assert prepended.components.equals(test_series.components)CODE
HIGH⚡darts/tests/test_timeseries.py2800 assert test_series.time_index.equals(prepended_sq.time_index)CODE
HIGH⚡darts/tests/test_timeseries.py2801 assert prepended_sq.components.equals(test_series.components)CODE
HIGHdarts/tests/test_timeseries.py206 assert ts.time_index.equals(CODE
HIGHdarts/tests/test_timeseries.py270 assert series.time_index.equals(CODE
HIGHdarts/tests/test_timeseries.py362 assert ts_from_int_idx.time_index.equals(ts_from_range_idx.time_index)CODE
HIGHdarts/tests/test_timeseries.py753 assert appended.time_index.equals(expected_idx)CODE
HIGHdarts/tests/test_timeseries.py754 assert appended.components.equals(series_1.components)CODE
HIGHdarts/tests/test_timeseries.py858 assert appended.time_index.equals(expected_idx)CODE
HIGHdarts/tests/test_timeseries.py859 assert appended.components.equals(series.components)CODE
HIGHdarts/tests/test_timeseries.py1574 assert series.time_index.equals(series_target.time_index)CODE
HIGHdarts/tests/test_timeseries.py2353 assert ts.time_index.equals(idx)CODE
HIGHdarts/tests/test_timeseries.py2363 assert ts.time_index.equals(idx)CODE
HIGHdarts/tests/test_timeseries.py2595 assert s_int.components.equals(series.components)CODE
HIGHdarts/tests/test_timeseries.py2616 assert s_int.time_index.equals(s_int_idx)CODE
HIGHdarts/tests/test_timeseries.py2676 assert s1_int.time_index.equals(s2_int.time_index) and s1_int.time_index.equals(CODE
HIGHdarts/tests/test_timeseries.py2701 assert seriesB.time_index.equals(CODE
HIGHdarts/tests/test_timeseries.py2708 assert seriesC.time_index.equals(CODE
HIGH⚡darts/tests/test_timeseries_static_covariates.py307 assert ts[0].time_index.equals(index_expected)CODE
230 more matches not shown…
Hyper-Verbose Identifiers1523 hits · 1395 pts
SeverityFileLineSnippetContext
LOWdocs/fix_package_titles.py18def extract_docstring_from_file(file_path):CODE
LOW⚡docs/fix_package_titles.py114def process_package_docstrings(app, docname, source):CODE
LOWdarts/logging.py31def raise_deprecation_warning(CODE
LOWdarts/logging.py143def execute_and_suppress_output(function, logger, suppression_threshold_level, *args):CODE
LOWdarts/logging.py164def suppress_lightning_warnings(suppress_all: bool = False):CODE
LOWdarts/config.py168 def _on_plotting_style_change(self, value: bool) -> None:CODE
LOWdarts/timeseries.py5100 def _observed_freq_datetime_index(index: pd.DatetimeIndex) -> set:CODE
LOWdarts/timeseries.py5123 def _observed_freq_integer_index(index: pd.Index) -> set:CODE
LOWdarts/timeseries.py5274 def _get_first_timestamp_after(self, ts: pd.Timestamp) -> pd.Timestamp | int:CODE
LOWdarts/timeseries.py5277 def _get_last_timestamp_before(self, ts: pd.Timestamp) -> pd.Timestamp | int:CODE
LOWdarts/metrics/__init__.py229def _build_time_dependent_metrics():CODE
LOWdarts/metrics/__init__.py234def _build_classification_metrics():CODE
LOWdarts/metrics/utils.py128 def wrapper_classification_support(*args, **kwargs):CODE
LOWdarts/metrics/utils.py166def unregister_metric_callback(callback: Callable) -> None:CODE
LOWdarts/metrics/utils.py353 def wrapper_multivariate_support(*args, **kwargs) -> METRIC_OUTPUT_TYPE:CODE
LOWdarts/metrics/utils.py732def _get_highest_probability_label(CODE
LOWdarts/ad/utils.py88def eval_metric_from_binary_prediction(CODE
LOWdarts/ad/utils.py294def show_anomalies_from_scores(CODE
LOWdarts/ad/utils.py742def _plot_series_and_anomalies(CODE
LOWdarts/ad/scorers/scorers.py118 def eval_metric_from_prediction(CODE
LOWdarts/ad/scorers/scorers.py163 def show_anomalies_from_prediction(CODE
LOWdarts/ad/scorers/scorers.py252 def _score_core_from_prediction(CODE
LOWdarts/ad/scorers/scorers.py308 def _extract_deterministic_series(self, series: TimeSeries, name_series: str):CODE
LOWdarts/ad/scorers/scorers.py320 def _extract_deterministic_values(self, series: np.ndarray, name_series: str):CODE
LOWdarts/ad/scorers/scorers.py650 def _score_core_from_prediction(CODE
LOWdarts/ad/scorers/scorers.py879 def _convert_tabular_to_series(CODE
LOWdarts/ad/scorers/scorers.py933 def _score_core_from_prediction(CODE
LOWdarts/ad/scorers/norm_scorer.py55 def _score_core_from_prediction(CODE
LOWdarts/ad/scorers/difference_scorer.py23 def _score_core_from_prediction(CODE
LOW…ocessing/transformers/static_covariates_transformer.py229 def _process_static_cov_columns(CODE
LOW…ocessing/transformers/static_covariates_transformer.py265 def _create_category_mappings(CODE
LOW…ocessing/transformers/static_covariates_transformer.py331 def _create_inv_component_masks(CODE
LOWdarts/dataprocessing/transformers/midas.py397 def _get_high_freq_period_start(CODE
LOWdarts/dataprocessing/transformers/midas.py462 def _process_static_covariates(CODE
LOWdarts/dataprocessing/encoders/encoder_base.py151 def generate_train_inference_idx(CODE
LOWdarts/dataprocessing/encoders/encoders.py1563 def _process_input_transformer(CODE
LOWdarts/datasets/dataset_loaders.py90 def _check_dataset_integrity_or_raise(self):CODE
LOW⚡darts/tests/test_timeseries.py122 def test_df_time_col_not_present(self):CODE
LOW⚡darts/tests/test_timeseries.py128 def test_df_invalid_time_col_dtype(self):CODE
LOW⚡darts/tests/test_timeseries.py185 def test_creation_from_dataframe_with_dates(self, backend, date_type):CODE
LOW⚡darts/tests/test_timeseries.py220 def test_integer_range_indexing(self):CODE
LOW⚡darts/tests/test_timeseries.py602 def test_slice_n_points_integer(self, times):CODE
LOW⚡darts/tests/test_timeseries.py614 def test_slice_n_points_integer_not_in_index(self):CODE
LOW⚡darts/tests/test_timeseries.py881 def test_append_prepend_dtype_conversion(self, dt_source, dt_vals):CODE
LOW⚡darts/tests/test_timeseries.py2176 def test_longest_contiguous_slice_index_types(self, times):CODE
LOW⚡darts/tests/test_timeseries.py2198 def test_with_columns_renamed(self):CODE
LOW⚡darts/tests/test_timeseries.py2751def helper_test_append_values(test_series: TimeSeries):CODE
LOW⚡darts/tests/test_timeseries.py2787def helper_test_prepend_values(test_series: TimeSeries):CODE
LOW⚡darts/tests/test_timeseries.py3055 def test_creation_with_hierarchy_sunny_day(self):CODE
LOW⚡darts/tests/test_timeseries.py3063 def test_with_hierarchy_sunny_day(self):CODE
LOW⚡darts/tests/test_timeseries.py3067 def test_with_hierarchy_rainy_day(self):CODE
LOW⚡darts/tests/test_timeseries.py3246 def test_head_sunny_day_sample_axis(self):CODE
LOW⚡darts/tests/test_timeseries.py3251 def test_head_overshot_time_axis(self):CODE
LOW⚡darts/tests/test_timeseries.py3256 def test_head_overshot_component_axis(self):CODE
LOW⚡darts/tests/test_timeseries.py3260 def test_head_overshot_sample_axis(self):CODE
LOW⚡darts/tests/test_timeseries.py3264 def test_head_numeric_time_index(self):CODE
LOW⚡darts/tests/test_timeseries.py3269 def test_tail_overshot_time_axis(self):CODE
LOW⚡darts/tests/test_timeseries.py3274 def test_tail_overshot_component_axis(self):CODE
LOW⚡darts/tests/test_timeseries.py3278 def test_tail_overshot_sample_axis(self):CODE
LOW⚡darts/tests/test_timeseries.py3282 def test_tail_numeric_time_index(self):CODE
1463 more matches not shown…
Cross-File Repetition57 hits · 285 pts
SeverityFileLineSnippetContext
HIGHdarts/ad/scorers/nll_cauchy_scorer.py0nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to STRING
HIGHdarts/ad/scorers/nll_gamma_scorer.py0nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to STRING
HIGHdarts/ad/scorers/scorers.py0nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to STRING
HIGHdarts/ad/scorers/nll_poisson_scorer.py0nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to STRING
HIGHdarts/ad/scorers/nll_gaussian_scorer.py0nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to STRING
HIGHdarts/ad/scorers/nll_exponential_scorer.py0nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to STRING
HIGHdarts/ad/scorers/nll_laplace_scorer.py0nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to STRING
HIGH…aprocessing/transformers/test_base_data_transformer.py0applies the (invertible) transform `transformed_series = scale * series + translation`. when 'fitting' this transform, tSTRING
HIGH…cessing/transformers/test_fittable_data_transformer.py0applies the (invertible) transform `transformed_series = scale * series + translation`. when 'fitting' this transform, tSTRING
HIGH…nsformers/test_invertible_fittable_data_transformer.py0applies the (invertible) transform `transformed_series = scale * series + translation`. when 'fitting' this transform, tSTRING
HIGH…ssing/transformers/test_invertible_data_transformer.py0applies the (invertible) transform `transformed_series = scale * series + translation`. when 'fitting' this transform, tSTRING
HIGH…aprocessing/transformers/test_base_data_transformer.py0implements the transform `scale * series + translation`. if `component_mask` is in `kwargs`, this is manually applied anSTRING
HIGH…cessing/transformers/test_fittable_data_transformer.py0implements the transform `scale * series + translation`. if `component_mask` is in `kwargs`, this is manually applied anSTRING
HIGH…nsformers/test_invertible_fittable_data_transformer.py0implements the transform `scale * series + translation`. if `component_mask` is in `kwargs`, this is manually applied anSTRING
HIGH…ssing/transformers/test_invertible_data_transformer.py0implements the transform `scale * series + translation`. if `component_mask` is in `kwargs`, this is manually applied anSTRING
HIGH…aprocessing/transformers/test_base_data_transformer.py0tests for correct transformation of multiple series when different param values are used for different parallel jobs (i.STRING
HIGH…nsformers/test_invertible_fittable_data_transformer.py0tests for correct transformation of multiple series when different param values are used for different parallel jobs (i.STRING
HIGH…ssing/transformers/test_invertible_data_transformer.py0tests for correct transformation of multiple series when different param values are used for different parallel jobs (i.STRING
HIGH…aprocessing/transformers/test_base_data_transformer.py0tests that `stack_samples` and `unstack_samples` correctly implemented when considering multi-sample timeseries.STRING
HIGH…cessing/transformers/test_fittable_data_transformer.py0tests that `stack_samples` and `unstack_samples` correctly implemented when considering multi-sample timeseries.STRING
HIGH…nsformers/test_invertible_fittable_data_transformer.py0tests that `stack_samples` and `unstack_samples` correctly implemented when considering multi-sample timeseries.STRING
HIGH…ssing/transformers/test_invertible_data_transformer.py0tests that `stack_samples` and `unstack_samples` correctly implemented when considering multi-sample timeseries.STRING
HIGH…aprocessing/transformers/test_base_data_transformer.py0tests that automatic component masking is correctly implemented, and that manual component masking is also handled correSTRING
HIGH…cessing/transformers/test_fittable_data_transformer.py0tests that automatic component masking is correctly implemented, and that manual component masking is also handled correSTRING
HIGH…nsformers/test_invertible_fittable_data_transformer.py0tests that automatic component masking is correctly implemented, and that manual component masking is also handled correSTRING
HIGH…ssing/transformers/test_invertible_data_transformer.py0tests that automatic component masking is correctly implemented, and that manual component masking is also handled correSTRING
HIGH…tils/historical_forecasts/test_historical_forecasts.py0check that passing sample weights work and that it yields different results than without sample weights.STRING
HIGHdarts/tests/models/forecasting/test_residuals.py0check that passing sample weights work and that it yields different results than without sample weights.STRING
HIGHdarts/tests/models/forecasting/test_backtesting.py0check that passing sample weights work and that it yields different results than without sample weights.STRING
HIGH…s/tabularization/test_create_lagged_prediction_data.py0tests the `create_lagged_training_data` function defined in `darts.utils.data.tabularization`. there are broadly two 'grSTRING
HIGH…s/tests/utils/tabularization/test_get_feature_times.py0tests the `create_lagged_training_data` function defined in `darts.utils.data.tabularization`. there are broadly two 'grSTRING
HIGH…ils/tabularization/test_create_lagged_training_data.py0tests the `create_lagged_training_data` function defined in `darts.utils.data.tabularization`. there are broadly two 'grSTRING
HIGH…s/tabularization/test_create_lagged_prediction_data.py0helper function called by `get_feature_times` that extracts all times within `future_covariates` that can be used to creSTRING
HIGH…s/tests/utils/tabularization/test_get_feature_times.py0helper function called by `get_feature_times` that extracts all times within `future_covariates` that can be used to creSTRING
HIGH…ils/tabularization/test_create_lagged_training_data.py0helper function called by `get_feature_times` that extracts all times within `future_covariates` that can be used to creSTRING
HIGHdarts/tests/models/forecasting/test_timesfm2p5.py0load validation inputs for timesfm3model fidelity tests. the data imports here are adapted from the `20-sklearnmodel-exaSTRING
HIGHdarts/tests/models/forecasting/test_chronos2.py0load validation inputs for timesfm3model fidelity tests. the data imports here are adapted from the `20-sklearnmodel-exaSTRING
HIGHdarts/tests/models/forecasting/test_patchtst_fm.py0load validation inputs for timesfm3model fidelity tests. the data imports here are adapted from the `20-sklearnmodel-exaSTRING
HIGHdarts/tests/models/forecasting/test_timesfm3.py0load validation inputs for timesfm3model fidelity tests. the data imports here are adapted from the `20-sklearnmodel-exaSTRING
HIGHdarts/utils/likelihood_models/sklearn.py0samples a prediction from the likelihood distribution and the predicted parameters.STRING
HIGHdarts/utils/likelihood_models/torch.py0samples a prediction from the likelihood distribution and the predicted parameters.STRING
HIGHdarts/utils/likelihood_models/statsforecast.py0samples a prediction from the likelihood distribution and the predicted parameters.STRING
HIGHdarts/models/forecasting/catboost_model.py0sklearn classifier model can be used to fit any scikit-learn-like classifier class to predict the target time series witSTRING
HIGHdarts/models/forecasting/xgboost.py0sklearn classifier model can be used to fit any scikit-learn-like classifier class to predict the target time series witSTRING
HIGHdarts/models/forecasting/linear_regression_model.py0sklearn classifier model can be used to fit any scikit-learn-like classifier class to predict the target time series witSTRING
HIGHdarts/models/forecasting/lgbm.py0sklearn classifier model can be used to fit any scikit-learn-like classifier class to predict the target time series witSTRING
HIGHdarts/models/forecasting/sklearn_model.py0sklearn classifier model can be used to fit any scikit-learn-like classifier class to predict the target time series witSTRING
HIGHdarts/models/forecasting/catboost_model.py0fit/train the model on one or multiple series. parameters ---------- series timeseries or sequence[timeseries] object coSTRING
HIGHdarts/models/forecasting/xgboost.py0fit/train the model on one or multiple series. parameters ---------- series timeseries or sequence[timeseries] object coSTRING
HIGHdarts/models/forecasting/lgbm.py0fit/train the model on one or multiple series. parameters ---------- series timeseries or sequence[timeseries] object coSTRING
HIGHdarts/models/forecasting/sklearn_model.py0fit/train the model on one or multiple series. parameters ---------- series timeseries or sequence[timeseries] object coSTRING
HIGHdarts/models/forecasting/catboost_model.py0returns the name of the categorical features parameter from model's `fit` method .STRING
HIGHdarts/models/forecasting/lgbm.py0returns the name of the categorical features parameter from model's `fit` method .STRING
HIGHdarts/models/forecasting/sklearn_model.py0returns the name of the categorical features parameter from model's `fit` method .STRING
HIGHdarts/models/forecasting/sf_auto_ces.py0auto-theta based on the `statsforecasts package <https://github.com/nixtla/statsforecast>`__. automatically selects the STRING
HIGHdarts/models/forecasting/sf_auto_ets.py0auto-theta based on the `statsforecasts package <https://github.com/nixtla/statsforecast>`__. automatically selects the STRING
HIGHdarts/models/forecasting/sf_auto_theta.py0auto-theta based on the `statsforecasts package <https://github.com/nixtla/statsforecast>`__. automatically selects the STRING
Unused Imports293 hits · 255 pts
SeverityFileLineSnippetContext
LOWdarts/__init__.py8CODE
LOWdarts/__init__.py8CODE
LOWdarts/__init__.py8CODE
LOWdarts/__init__.py8CODE
LOWdarts/__init__.py8CODE
LOWdarts/__init__.py15CODE
LOWdarts/__init__.py15CODE
LOWdarts/__init__.py15CODE
LOWdarts/__init__.py15CODE
LOWdarts/typing.py16CODE
LOWdarts/timeseries.py42CODE
LOWdarts/metrics/__init__.py109CODE
LOWdarts/metrics/__init__.py110CODE
LOWdarts/metrics/__init__.py111CODE
LOWdarts/metrics/__init__.py112CODE
LOWdarts/metrics/__init__.py113CODE
LOWdarts/metrics/__init__.py114CODE
LOWdarts/metrics/__init__.py115CODE
LOWdarts/metrics/__init__.py118CODE
LOWdarts/metrics/__init__.py119CODE
LOWdarts/metrics/__init__.py120CODE
LOWdarts/metrics/__init__.py121CODE
LOWdarts/metrics/__init__.py122CODE
LOWdarts/metrics/__init__.py123CODE
LOWdarts/metrics/__init__.py124CODE
LOWdarts/metrics/__init__.py125CODE
LOWdarts/metrics/__init__.py126CODE
LOWdarts/metrics/__init__.py127CODE
LOWdarts/metrics/__init__.py128CODE
LOWdarts/metrics/__init__.py129CODE
LOWdarts/metrics/__init__.py130CODE
LOWdarts/metrics/__init__.py131CODE
LOWdarts/metrics/__init__.py132CODE
LOWdarts/metrics/__init__.py133CODE
LOWdarts/metrics/__init__.py134CODE
LOWdarts/metrics/__init__.py135CODE
LOWdarts/metrics/__init__.py136CODE
LOWdarts/metrics/__init__.py137CODE
LOWdarts/metrics/__init__.py138CODE
LOWdarts/metrics/__init__.py139CODE
LOWdarts/metrics/__init__.py140CODE
LOWdarts/metrics/__init__.py141CODE
LOWdarts/metrics/__init__.py142CODE
LOWdarts/metrics/__init__.py143CODE
LOWdarts/metrics/__init__.py144CODE
LOWdarts/metrics/__init__.py145CODE
LOWdarts/metrics/__init__.py146CODE
LOWdarts/metrics/__init__.py147CODE
LOWdarts/metrics/__init__.py148CODE
LOWdarts/metrics/__init__.py149CODE
LOWdarts/metrics/__init__.py150CODE
LOWdarts/metrics/__init__.py151CODE
LOWdarts/metrics/__init__.py152CODE
LOWdarts/metrics/__init__.py153CODE
LOWdarts/metrics/__init__.py154CODE
LOWdarts/ad/__init__.py34CODE
LOWdarts/ad/__init__.py35CODE
LOWdarts/ad/__init__.py38CODE
LOWdarts/ad/__init__.py39CODE
LOWdarts/ad/__init__.py40CODE
233 more matches not shown…
AI Structural Patterns135 hits · 119 pts
SeverityFileLineSnippetContext
LOWdarts/timeseries.py103CODE
LOWdarts/timeseries.py574CODE
LOWdarts/timeseries.py679CODE
LOWdarts/timeseries.py842CODE
LOWdarts/timeseries.py1213CODE
LOWdarts/timeseries.py4436CODE
LOWdarts/timeseries.py4527CODE
LOWdarts/metrics/metrics.py41CODE
LOWdarts/metrics/metrics.py226CODE
LOWdarts/metrics/metrics.py411CODE
LOWdarts/metrics/metrics.py542CODE
LOWdarts/metrics/metrics.py668CODE
LOWdarts/metrics/metrics.py853CODE
LOWdarts/metrics/metrics.py988CODE
LOWdarts/metrics/metrics.py1201CODE
LOWdarts/metrics/metrics.py1323CODE
LOWdarts/metrics/metrics.py1515CODE
LOWdarts/metrics/metrics.py1637CODE
LOWdarts/metrics/metrics.py1743CODE
LOWdarts/metrics/metrics.py1856CODE
LOWdarts/metrics/metrics.py1975CODE
LOWdarts/metrics/metrics.py2081CODE
LOWdarts/metrics/metrics.py2198CODE
LOWdarts/metrics/metrics.py2318CODE
LOWdarts/metrics/metrics.py2418CODE
LOWdarts/metrics/metrics.py2534CODE
LOWdarts/metrics/metrics.py2645CODE
LOWdarts/metrics/metrics.py2705CODE
LOWdarts/metrics/metrics.py3028CODE
LOWdarts/metrics/metrics.py3448CODE
LOWdarts/metrics/metrics.py3553CODE
LOWdarts/metrics/metrics.py3650CODE
LOWdarts/metrics/metrics.py3782CODE
LOWdarts/metrics/metrics.py3881CODE
LOWdarts/metrics/metrics.py3993CODE
LOWdarts/metrics/metrics.py4088CODE
LOWdarts/metrics/metrics.py4200CODE
LOWdarts/metrics/metrics.py4390CODE
LOWdarts/metrics/metrics.py4508CODE
LOWdarts/metrics/metrics.py4626CODE
LOWdarts/ad/utils.py294CODE
LOWdarts/ad/anomaly_model/forecasting_am.py60CODE
LOWdarts/ad/anomaly_model/forecasting_am.py147CODE
LOWdarts/ad/anomaly_model/forecasting_am.py234CODE
LOWdarts/ad/anomaly_model/forecasting_am.py319CODE
LOWdarts/ad/anomaly_model/forecasting_am.py418CODE
LOWdarts/ad/anomaly_model/forecasting_am.py528CODE
LOWdarts/dataprocessing/dtw/_plot.py4CODE
LOW…taprocessing/transformers/fittable_data_transformer.py25CODE
LOWdarts/dataprocessing/transformers/window_transformer.py14CODE
LOWdarts/tests/metrics/test_metrics.py2376CODE
LOWdarts/tests/models/forecasting/test_sklearn_models.py74CODE
LOWdarts/utils/mlflow.py292CODE
LOWdarts/utils/mlflow.py509CODE
LOWdarts/utils/mlflow.py644CODE
LOWdarts/utils/timeseries_generation.py93CODE
LOWdarts/utils/timeseries_generation.py154CODE
LOWdarts/utils/timeseries_generation.py223CODE
LOWdarts/utils/timeseries_generation.py305CODE
LOWdarts/utils/_plotting.py171CODE
75 more matches not shown…
Redundant / Tautological Comments45 hits · 82 pts
SeverityFileLineSnippetContext
LOW⚡docs/fix_package_titles.py104 # Check if it's a package (has __init__.py)COMMENT
LOW⚡docs/fix_package_titles.py107 # Check if it's a module (has .py file)COMMENT
LOWdocs/fix_package_titles.py130 # Check if this is a package RST file (contains ".. currentmodule::")COMMENT
LOWdarts/tests/test_timeseries_plotly.py212 # Check if the alpha is present in the fillcolor stringCOMMENT
LOWdarts/tests/test_timeseries_plotly.py449 # Check if the trace color is green (Plotly stores this in marker or line)COMMENT
LOW⚡darts/tests/ad/test_detectors.py64 # Check if return type is TimeSeries when input is a single seriesCOMMENT
LOW⚡darts/tests/ad/test_detectors.py66 # Check if return type is Sequence when input is a Sequence of seriesCOMMENT
LOW⚡darts/tests/ad/test_detectors.py82 # Check if return type is float when input is a seriesCOMMENT
LOW⚡darts/tests/ad/test_detectors.py87 # Check if return type is Sequence when input is a Sequence of seriesCOMMENT
LOW⚡darts/tests/ad/test_detectors.py96 # Check if return type is Sequence when input is a multivariate seriesCOMMENT
LOW⚡darts/tests/ad/test_detectors.py103 # Check if return type is Sequence when input is a multivariate seriesCOMMENT
LOWdarts/tests/ad/test_detectors.py159 # Check if _fit_called is FalseCOMMENT
LOWdarts/tests/ad/test_detectors.py174 # Check if _fit_called is True after being fittedCOMMENT
LOWdarts/tests/ad/test_detectors.py185 # Check if _fit_called is True after being fittedCOMMENT
LOW⚡darts/tests/ad/test_scorers.py173 # Check if return type is float when input is a seriesCOMMENT
LOW⚡darts/tests/ad/test_scorers.py178 # Check if return type is Sequence when input is a Sequence of seriesCOMMENT
LOW⚡darts/tests/ad/test_scorers.py184 # Check if return type is Sequence when input is a multivariate seriesCOMMENT
LOW⚡darts/tests/ad/test_scorers.py190 # Check if return type is Sequence when input is a multivariate seriesCOMMENT
LOW⚡darts/tests/ad/test_scorers.py202 # Check if return type is float when input is a seriesCOMMENT
LOW⚡darts/tests/ad/test_scorers.py205 # Check if return type is Sequence when input is a sequence of seriesCOMMENT
LOW⚡darts/tests/ad/test_scorers.py209 # Check if return type is Sequence when input is a multivariate seriesCOMMENT
LOW⚡darts/tests/ad/test_scorers.py212 # Check if return type is Sequence when input is a sequence of multivariate seriesCOMMENT
LOW⚡darts/tests/ad/test_scorers.py217 # Check if return type is float when input is a seriesCOMMENT
LOW⚡darts/tests/ad/test_scorers.py222 # Check if return type is Sequence when input is a Sequence of seriesCOMMENT
LOW⚡darts/tests/ad/test_scorers.py229 # Check if return type is Sequence when input is a multivariate seriesCOMMENT
LOW⚡darts/tests/ad/test_scorers.py235 # Check if return type is Sequence when input is a multivariate seriesCOMMENT
LOW⚡darts/tests/ad/test_scorers.py243 # Check if return type is float when input is a seriesCOMMENT
LOW⚡darts/tests/ad/test_scorers.py250 # Check if return type is Sequence when input is a Sequence of seriesCOMMENT
LOW⚡darts/tests/ad/test_scorers.py257 # Check if return type is a float when input is a multivariate series and component_wise is set to `False`COMMENT
LOW⚡darts/tests/ad/test_scorers.py264 # Check if return type is Sequence when input is a multivariate series and component_wise is set to `False`COMMENT
LOW⚡darts/tests/ad/test_scorers.py273 # Check if return type is a float when input is a multivariate series and component_wise is set to `True`COMMENT
LOW⚡darts/tests/ad/test_scorers.py280 # Check if return type is Sequence when input is a multivariate series and component_wise is set to `True`COMMENT
LOW⚡darts/tests/ad/test_scorers.py600 # Check if _fit_called is True after being fittedCOMMENT
LOW⚡darts/tests/ad/test_scorers.py608 # Check if _fit_called is True after being fittedCOMMENT
LOW⚡darts/tests/ad/test_scorers.py618 # Check if _fit_called is True after being fittedCOMMENT
LOW⚡darts/tests/ad/test_scorers.py628 # Check if _fit_called is True after being fittedCOMMENT
LOWdarts/tests/ad/test_scorers.py451 # Check if trainable is False, being a NonFittableAnomalyScorerCOMMENT
LOWdarts/tests/ad/test_scorers.py503 # Check if _fit_called is FalseCOMMENT
LOWdarts/tests/ad/test_anomaly_model.py475 # Check if return type is float when input is a seriesCOMMENT
LOWdarts/tests/ad/test_anomaly_model.py481 # Check if return type is Sequence when input is a Sequence of seriesCOMMENT
LOWdarts/tests/ad/test_aggregators.py229 # Check if return type is the same number of series in inputCOMMENT
LOWdarts/tests/ad/test_aggregators.py464 # Check if _fit_called is False before calling fitCOMMENT
LOWdarts/tests/ad/test_aggregators.py470 # Check if _fit_called is True after calling fitCOMMENT
LOWdarts/models/forecasting/sklearn_model.py456 # Check if only default lags are providedCOMMENT
LOWdarts/models/forecasting/sklearn_model.py1059 # Check if multi-output regression is requiredCOMMENT
Decorative Section Separators26 hits · 81 pts
SeverityFileLineSnippetContext
MEDIUMdocs/fix_package_titles.py46 # ==================COMMENT
MEDIUMdocs/fix_package_titles.py153 # ============COMMENT
MEDIUMdocs/source/conf.py196# ---------------------------------------------------------------------------------COMMENT
MEDIUMdarts/tests/models/forecasting/foundation_test_utils.py17# ── Artefact paths ──────────────────────────────────────────────────────────COMMENT
MEDIUMdarts/tests/models/forecasting/foundation_test_utils.py34# ── T0 tiny model ───────────────────────────────────────────────────────────COMMENT
MEDIUMdarts/tests/models/forecasting/foundation_test_utils.py61# ── HuggingFace mock download (Chronos-2 tiny artefact) ────────────────────COMMENT
MEDIUMdarts/tests/models/forecasting/foundation_test_utils.py84# ── TiRex stub ──────────────────────────────────────────────────────────────COMMENT
MEDIUMdarts/tests/models/forecasting/foundation_test_utils.py108# ── TimesFM 2.5 tiny model ─────────────────────────────────────────────────COMMENT
MEDIUMdarts/utils/serialization/registry.py202# ---------------------------------------------------------------------------COMMENT
MEDIUMdarts/utils/serialization/registry.py204# ---------------------------------------------------------------------------COMMENT
MEDIUMdarts/utils/serialization/torch.py39# ---------------------------------------------------------------------------COMMENT
MEDIUMdarts/utils/serialization/torch.py41# ---------------------------------------------------------------------------COMMENT
MEDIUMdarts/utils/serialization/torch.py89# ---------------------------------------------------------------------------COMMENT
MEDIUMdarts/utils/serialization/torch.py91# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡darts/utils/serialization/torch.py155# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡darts/utils/serialization/torch.py157# ---------------------------------------------------------------------------COMMENT
MEDIUMdarts/utils/serialization/base.py39# ---------------------------------------------------------------------------COMMENT
MEDIUMdarts/utils/serialization/base.py41# ---------------------------------------------------------------------------COMMENT
MEDIUMdarts/utils/serialization/base.py69# ---------------------------------------------------------------------------COMMENT
MEDIUMdarts/utils/serialization/base.py71# ---------------------------------------------------------------------------COMMENT
MEDIUMdarts/utils/serialization/base.py142# ---------------------------------------------------------------------------COMMENT
MEDIUMdarts/utils/serialization/base.py144# ---------------------------------------------------------------------------COMMENT
MEDIUMdarts/utils/serialization/base.py233# ---------------------------------------------------------------------------COMMENT
MEDIUMdarts/utils/serialization/base.py235# ---------------------------------------------------------------------------COMMENT
MEDIUMdarts/utils/serialization/base.py505# ---------------------------------------------------------------------------COMMENT
MEDIUMdarts/utils/serialization/base.py507# ---------------------------------------------------------------------------COMMENT
Deep Nesting71 hits · 60 pts
SeverityFileLineSnippetContext
LOWdarts/timeseries.py103CODE
LOWdarts/timeseries.py1785CODE
LOWdarts/timeseries.py2369CODE
LOWdarts/timeseries.py5633CODE
LOWdarts/ad/utils.py142CODE
LOWdarts/dataprocessing/dtw/cost_matrix.py115CODE
LOWdarts/dataprocessing/transformers/reconciliation.py231CODE
LOW…ocessing/transformers/static_covariates_transformer.py265CODE
LOW…ocessing/transformers/static_covariates_transformer.py450CODE
LOWdarts/dataprocessing/encoders/encoders.py1450CODE
LOWdarts/datasets/dataset_loaders.py145CODE
LOWdarts/tests/test_timeseries.py1440CODE
LOWdarts/tests/test_timeseries_plot.py70CODE
LOWdarts/tests/dataprocessing/encoders/test_encoders.py325CODE
LOWdarts/tests/utils/test_timeseries_generation.py209CODE
LOW…tils/historical_forecasts/test_historical_forecasts.py1834CODE
LOW…tils/historical_forecasts/test_historical_forecasts.py3037CODE
LOW…tils/historical_forecasts/test_historical_forecasts.py4674CODE
LOW…tils/historical_forecasts/test_historical_forecasts.py4785CODE
LOW…s/tabularization/test_create_lagged_prediction_data.py231CODE
LOW…ils/tabularization/test_create_lagged_training_data.py259CODE
LOW…ils/tabularization/test_create_lagged_training_data.py415CODE
LOWdarts/tests/models/forecasting/test_TCN.py75CODE
LOWdarts/tests/models/forecasting/test_dlinear_nlinear.py132CODE
LOW…/tests/models/forecasting/test_probabilistic_models.py620CODE
LOWdarts/tests/models/forecasting/test_sklearn_models.py380CODE
LOWdarts/tests/models/forecasting/test_sklearn_models.py695CODE
LOWdarts/tests/models/forecasting/test_sklearn_models.py1666CODE
LOWdarts/tests/models/forecasting/test_sklearn_models.py395CODE
LOWdarts/tests/models/forecasting/test_conformal_model.py1174CODE
LOWdarts/tests/optional_deps/test_mlflow.py1532CODE
LOWdarts/utils/mlflow.py1636CODE
LOWdarts/utils/mlflow.py1765CODE
LOWdarts/utils/mlflow.py1837CODE
LOWdarts/utils/_plotting.py27CODE
LOWdarts/utils/_plotting.py171CODE
LOWdarts/utils/utils.py756CODE
LOWdarts/utils/statistics.py140CODE
LOWdarts/utils/ts_utils.py56CODE
LOWdarts/utils/ts_utils.py185CODE
LOWdarts/utils/serialization/base.py390CODE
LOWdarts/utils/historical_forecasts/utils.py98CODE
LOWdarts/utils/historical_forecasts/utils.py360CODE
LOWdarts/utils/historical_forecasts/utils.py1105CODE
LOWdarts/utils/historical_forecasts/utils.py1415CODE
LOW…forecasts/optimized_historical_forecasts_regression.py23CODE
LOWdarts/utils/data/torch_datasets/dataset.py69CODE
LOWdarts/utils/data/tabularization/tabularization.py1525CODE
LOWdarts/utils/data/tabularization/tabularization.py1777CODE
LOWdarts/utils/likelihood_models/sklearn.py672CODE
LOWdarts/models/components/tft_submodels.py369CODE
LOWdarts/models/forecasting/ensemble_model.py71CODE
LOWdarts/models/forecasting/ensemble_model.py234CODE
LOWdarts/models/forecasting/ensemble_model.py761CODE
LOWdarts/models/forecasting/prophet_model.py631CODE
LOWdarts/models/forecasting/tft_model.py978CODE
LOWdarts/models/forecasting/conformal_models.py1082CODE
LOWdarts/models/forecasting/forecasting_model.py690CODE
LOWdarts/models/forecasting/forecasting_model.py2065CODE
LOWdarts/models/forecasting/fft.py82CODE
11 more matches not shown…
Self-Referential Comments17 hits · 51 pts
SeverityFileLineSnippetContext
MEDIUM⚡darts/tests/test_timeseries.py2740 # Creating a gap is not allowedCOMMENT
MEDIUM⚡darts/tests/test_timeseries.py2776 # Creating a gap is not allowedCOMMENT
MEDIUMdarts/tests/test_timeseries_plotly.py292 # Create a univariate deterministic seriesCOMMENT
MEDIUMdarts/tests/test_timeseries_plotly.py339 # Define a side effect for the mock importCOMMENT
MEDIUM…tils/historical_forecasts/test_historical_forecasts.py4679 # Create a custom model that tracks fit and predict argumentsCOMMENT
MEDIUM…tils/historical_forecasts/test_historical_forecasts.py4795 # Create a custom Pipeline subclass that tracks fit, transform, and inverse_transform argumentsCOMMENT
MEDIUMdarts/tests/models/forecasting/foundation_test_utils.py35# Create a local checkpoint for t0-alpha model.COMMENT
MEDIUM⚡darts/tests/models/forecasting/test_prophet.py377 # Create a simple timeseriesCOMMENT
MEDIUM…ts/models/forecasting/test_local_forecasting_models.py652 # Create a custom model that tracks fit and predict argumentsCOMMENT
MEDIUMdarts/tests/optional_deps/test_ray.py52 # Create the model using model_args from Ray TuneCOMMENT
MEDIUMdarts/tests/optional_deps/test_ray.py92 # Define the trainable function that will be tuned by Ray TuneCOMMENT
MEDIUMdarts/tests/optional_deps/test_ray.py110 # Create the Tuner object and run the hyperparameter searchCOMMENT
MEDIUMdarts/utils/mlflow.py684 # Create a training session to track the training process and log informationCOMMENT
MEDIUMdarts/models/forecasting/block_rnn_model.py165 # Defining the RNN moduleCOMMENT
MEDIUMdarts/models/forecasting/transformer_model.py278 # Defining the Transformer moduleCOMMENT
MEDIUMdarts/models/forecasting/pl_forecasting_module.py457 # Create the optimizer and (optionally) the learning rate schedulerCOMMENT
MEDIUMdarts/models/forecasting/rnn_model.py171 # Defining the RNN moduleCOMMENT
Empty Error Handlers8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHdarts/config.py259except ImportError:CODE
HIGHdarts/metrics/utils.py170except ValueError:CODE
HIGHdarts/tests/conftest.py63except FileNotFoundError:CODE
HIGHdarts/tests/test_logging.py60except Exception:CODE
HIGHdarts/tests/test_config.py177except ValueError:CODE
HIGH…s/tests/utils/serialization/test_serialization_base.py238except Exception:CODE
HIGHdarts/utils/mlflow.py592except ImportError:CODE
HIGHdarts/utils/mlflow.py599except (ImportError, Exception):CODE
Excessive Try-Catch Wrapping26 hits · 27 pts
SeverityFileLineSnippetContext
LOWdocs/fix_package_titles.py81 except Exception:CODE
LOWdarts/metrics/utils.py757 except Exception:CODE
LOWdarts/datasets/dataset_loaders.py137 except Exception as e:CODE
LOWdarts/datasets/dataset_loaders.py161 except Exception as e:CODE
LOWdarts/datasets/dataset_loaders.py226 except Exception as e:CODE
LOWdarts/tests/test_logging.py25 except Exception:CODE
LOWdarts/tests/test_logging.py60 except Exception:CODE
LOW…s/tests/utils/serialization/test_serialization_base.py238 except Exception:CODE
LOW…serialization/test_serialization_forecasting_models.py230 except Exception:CODE
LOWdarts/utils/mlflow.py1020 except Exception:CODE
LOWdarts/utils/ts_utils.py221 except Exception as err:CODE
LOWdarts/utils/serialization/registry.py234 except Exception as e: # pragma: no cover - defensive onlyCODE
LOW⚡darts/utils/serialization/base.py249 except Exception: # pragma: no coverCODE
LOW⚡darts/utils/serialization/base.py259 except Exception: # pragma: no coverCODE
LOW⚡darts/utils/serialization/base.py269 except Exception: # pragma: no coverCODE
LOW⚡darts/utils/serialization/base.py279 except Exception: # pragma: no coverCODE
LOW⚡darts/utils/serialization/base.py290 except Exception: # pragma: no coverCODE
LOW⚡darts/utils/serialization/base.py300 except Exception: # pragma: no coverCODE
LOW⚡darts/utils/serialization/base.py317 except Exception: # pragma: no coverCODE
LOW⚡darts/utils/serialization/base.py327 except Exception: # pragma: no coverCODE
LOW⚡darts/utils/serialization/base.py337 except Exception: # pragma: no coverCODE
LOW⚡darts/utils/serialization/base.py385 except Exception: # pragma: no coverCODE
LOWdarts/utils/serialization/base.py359 except Exception: # pragma: no coverCODE
LOWdarts/utils/serialization/base.py435 except Exception: # pragma: no coverCODE
LOWdarts/models/forecasting/forecasting_model.py2344 except Exception as err:STRING
LOWdarts/models/forecasting/global_baseline_models.py401 except Exception as err:CODE
AI Slop Vocabulary13 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMdarts/timeseries.py4288 # More robust than predicting from window params, as some functionsCOMMENT
MEDIUMdarts/metrics/utils.py65# Note: for new metrics added to this module to be able to leverage the two decorators, it is required both havingCOMMENT
MEDIUMdarts/dataprocessing/transformers/midas.py124 """MIDAS needs the high frequency period name in order to easily reverse_transformSTRING
LOWdarts/dataprocessing/encoders/encoder_base.py275 # user supplied covariates: simply return the covariate time index; guarantees that an exception isCOMMENT
LOWdarts/dataprocessing/encoders/encoder_base.py316 # user supplied covariates: simply return the covariate time index; guarantees that an exception isCOMMENT
LOWdarts/dataprocessing/encoders/encoder_base.py374 # user supplied covariates: simply return the covariate time index; guarantees that models raise anCOMMENT
LOWdarts/dataprocessing/encoders/encoder_base.py378 # simply return the target time index.COMMENT
LOWdarts/dataprocessing/encoders/encoder_base.py424 # user supplied covariates: simply return the covariate time index; guarantees that an exception isCOMMENT
LOWdarts/dataprocessing/encoders/encoder_base.py428 # simply return the target time index.COMMENT
LOWdarts/tests/ad/test_scorers.py845 # test plotting (just call the functions)COMMENT
MEDIUMdarts/models/forecasting/sf_model.py24 """This serves as a protocol for expected StatsForecast model API."""STRING
MEDIUMdarts/models/forecasting/torch_forecasting_model.py3034 # warning messages formatted to facilitate copy-pastingCOMMENT
MEDIUMdarts/models/forecasting/linear_regression_model.py242 # assign the Quantile regressor to self.model to leverage existing logicCOMMENT
Modern Structural Boilerplate19 hits · 19 pts
SeverityFileLineSnippetContext
LOWdarts/config.py304 def set_option(self, pattern: str, value: Any) -> None:CODE
LOWdarts/config.py391def set_option(pat: str, value: Any) -> None:CODE
LOWdarts/__init__.py24__all__ = [CODE
LOWdarts/ad/anomaly_model/__init__.py28__all__ = [CODE
LOWdarts/ad/aggregators/__init__.py19__all__ = [CODE
LOWdarts/ad/scorers/__init__.py83__all__ = [CODE
LOWdarts/ad/detectors/__init__.py25__all__ = [CODE
LOWdarts/dataprocessing/__init__.py11__all__ = ["Pipeline"]CODE
LOWdarts/dataprocessing/dtw/__init__.py19__all__ = [CODE
LOWdarts/dataprocessing/encoders/encoder_base.py892 def _update_mask(self, covariates: list[TimeSeries]) -> None:CODE
LOWdarts/dataprocessing/encoders/__init__.py21__all__ = [CODE
LOWdarts/dataprocessing/encoders/encoders.py1388 def _setup_encoders(self, params: dict) -> None:CODE
LOWdarts/dataprocessing/encoders/encoders.py1427 def _setup_transformer(self, params: dict) -> None:CODE
LOWdarts/utils/__init__.py15__all__ = [CODE
LOWdarts/utils/onnx/__init__.py10__all__ = [CODE
LOWdarts/utils/serialization/__init__.py15__all__ = [CODE
LOWdarts/utils/data/tabularization/__init__.py23__all__ = [CODE
LOWdarts/models/components/timesfm3_submodels.py689 def set_input_dims(self, input_dim: int) -> None:CODE
LOWexamples/utils/__init__.py3__all__ = ["fix_pythonpath_if_working_locally"]CODE
Over-Commented Block14 hits · 14 pts
SeverityFileLineSnippetContext
LOWdocs/source/conf.py1# Configuration file for the Sphinx documentation builder.COMMENT
LOWdocs/source/conf.py181}COMMENT
LOWdarts/dataprocessing/encoders/encoder_base.py381 # target index; always True for all models except SKLearnModels.COMMENT
LOWdarts/dataprocessing/encoders/encoder_base.py421COMMENT
LOWdarts/tests/ad/test_anomaly_model.py261 )COMMENT
LOWdarts/models/forecasting/timesfm2p5_model.py241 # Q = Z / I: patches for the input chunkCOMMENT
LOWdarts/models/forecasting/ensemble_model.py661 int | None,COMMENT
LOWdarts/models/forecasting/block_rnn_model.py201 self.fc = nn.Sequential(*feats)COMMENT
LOWdarts/models/forecasting/t0_model.py121 # Dimension notation in comments below:COMMENT
LOWdarts/models/forecasting/nf_model.py221 # - `insample_mask`: (B, L)COMMENT
LOWdarts/models/forecasting/nf_model.py281 if x_static is not None:COMMENT
LOWdarts/models/forecasting/tirex_model.py81COMMENT
LOWdarts/models/forecasting/tsmixer_model.py1"""COMMENT
LOW.github/scripts/libomp-macOS.sh1brew install libompCOMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdarts/utils/historical_forecasts/utils.py730 # get the first and last historical forecast start points for either (re)training or (zero shot) predictionCOMMENT
Fake / Example Data1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdocs/fix_package_titles.py31 # Extract docstring (enclosed by `"""lorem ipsum"""` or `'''lorem ipsum'''`)COMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdarts/explainability/utils.py170 # make sure to remove any encodings from covariates if downstream tasks require covariates without encodingsCOMMENT