A python library for user-friendly forecasting and anomaly detection on time series.
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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1820 finding(s).
Are imports declared and package/API names verified? 584 finding(s).
Are wrappers, guards, and repeated structures necessary? 1794 finding(s).
Which changes need focused human review? 2540 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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | darts/timeseries.py | 5335 | if not self._time_index.equals(other._time_index): | CODE |
| HIGH⚡ | darts/timeseries.py | 5341 | if not self.components.equals(other.components): | CODE |
| HIGH⚡ | darts/timeseries.py | 5347 | elif isinstance(sc_self, pd.DataFrame) and not sc_self.equals(sc_other): | CODE |
| HIGH | darts/timeseries.py | 5947 | ts.static_covariates.columns.equals(series[0].static_covariates.columns) | CODE |
| HIGH | darts/metrics/metrics.py | 1536 | When :math:`y_t = 0` for some :math:`t` the term is undefined; the behavior is then controlled by | STRING |
| HIGH | darts/metrics/metrics.py | 1657 | When :math:`y_t = 0` for some :math:`t` the term is undefined; the behavior is then controlled by | STRING |
| HIGH | darts/metrics/utils.py | 493 | if not pred_series.components.equals(actual_series.components): | CODE |
| HIGH | darts/metrics/utils.py | 501 | if not predicted_components.equals(actual_series.components): | CODE |
| HIGH | darts/metrics/utils.py | 890 | undefined, so the entry is set to ``np.nan``. | STRING |
| HIGH⚡ | darts/tests/test_timeseries.py | 110 | assert ts_pd_series.equals(pd_series) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 117 | assert ts_pd_df.equals(pd_df) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 120 | assert ts_pd_df.equals(pd_df.reset_index()) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 165 | assert ts_pl_df.equals(pl_df) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 175 | assert ts_pl_df_2.equals(pl_df) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 229 | assert series.time_index.equals(pd.RangeIndex(stop=1)) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 232 | assert series.time_index.equals(pd.RangeIndex(start=10, stop=11)) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 236 | assert series.time_index.equals(pd.RangeIndex(start=10, stop=20)) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 240 | assert series.time_index.equals(pd.RangeIndex(start=10, stop=50)) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 244 | assert series.time_index.equals(pd.RangeIndex(start=10, stop=40)) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 248 | assert series.time_index.equals(pd.RangeIndex(start=10, stop=40, step=4)) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 252 | assert series.time_index.equals(pd.RangeIndex(start=0, stop=0, step=1)) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 607 | assert series.slice_n_points_after(idx[2], 3).time_index.equals(times[2:5]) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 608 | assert series.slice_n_points_before(idx[5], 3).time_index.equals(times[3:6]) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 611 | assert series.slice_n_points_after(idx[8], 5).time_index.equals(times[8:]) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 612 | assert series.slice_n_points_before(idx[1], 5).time_index.equals(times[:2]) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 617 | assert sliced.time_index.equals(pd.RangeIndex(16, 20, 2)) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 619 | assert sliced.time_index.equals(pd.RangeIndex(12, 16, 2)) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 874 | assert prepended.time_index.equals(expected_idx) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 875 | assert prepended.components.equals(series_2.components) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2183 | assert result.time_index.equals(times[3:7]) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2188 | assert result.time_index.equals(times[2:8]) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2192 | assert series.longest_contiguous_slice().time_index.equals(times[1:8]) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2196 | assert series.longest_contiguous_slice().time_index.equals(times[:1]) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2737 | assert test_series.time_index.equals(appended.time_index) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2738 | assert appended.components.equals(seriesA.components) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2757 | assert test_series.time_index.equals(appended.time_index) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2763 | assert test_series.time_index.equals(appended_sq.time_index) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2764 | assert appended_sq.components.equals(seriesA.components) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2773 | assert test_series.time_index.equals(prepended.time_index) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2774 | assert prepended.components.equals(seriesB.components) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2793 | assert test_series.time_index.equals(prepended.time_index) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2794 | assert prepended.components.equals(test_series.components) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2800 | assert test_series.time_index.equals(prepended_sq.time_index) | CODE |
| HIGH⚡ | darts/tests/test_timeseries.py | 2801 | assert prepended_sq.components.equals(test_series.components) | CODE |
| HIGH | darts/tests/test_timeseries.py | 206 | assert ts.time_index.equals( | CODE |
| HIGH | darts/tests/test_timeseries.py | 270 | assert series.time_index.equals( | CODE |
| HIGH | darts/tests/test_timeseries.py | 362 | assert ts_from_int_idx.time_index.equals(ts_from_range_idx.time_index) | CODE |
| HIGH | darts/tests/test_timeseries.py | 753 | assert appended.time_index.equals(expected_idx) | CODE |
| HIGH | darts/tests/test_timeseries.py | 754 | assert appended.components.equals(series_1.components) | CODE |
| HIGH | darts/tests/test_timeseries.py | 858 | assert appended.time_index.equals(expected_idx) | CODE |
| HIGH | darts/tests/test_timeseries.py | 859 | assert appended.components.equals(series.components) | CODE |
| HIGH | darts/tests/test_timeseries.py | 1574 | assert series.time_index.equals(series_target.time_index) | CODE |
| HIGH | darts/tests/test_timeseries.py | 2353 | assert ts.time_index.equals(idx) | CODE |
| HIGH | darts/tests/test_timeseries.py | 2363 | assert ts.time_index.equals(idx) | CODE |
| HIGH | darts/tests/test_timeseries.py | 2595 | assert s_int.components.equals(series.components) | CODE |
| HIGH | darts/tests/test_timeseries.py | 2616 | assert s_int.time_index.equals(s_int_idx) | CODE |
| HIGH | darts/tests/test_timeseries.py | 2676 | assert s1_int.time_index.equals(s2_int.time_index) and s1_int.time_index.equals( | CODE |
| HIGH | darts/tests/test_timeseries.py | 2701 | assert seriesB.time_index.equals( | CODE |
| HIGH | darts/tests/test_timeseries.py | 2708 | assert seriesC.time_index.equals( | CODE |
| HIGH⚡ | darts/tests/test_timeseries_static_covariates.py | 307 | assert ts[0].time_index.equals(index_expected) | CODE |
| 230 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/fix_package_titles.py | 18 | def extract_docstring_from_file(file_path): | CODE |
| LOW⚡ | docs/fix_package_titles.py | 114 | def process_package_docstrings(app, docname, source): | CODE |
| LOW | darts/logging.py | 31 | def raise_deprecation_warning( | CODE |
| LOW | darts/logging.py | 143 | def execute_and_suppress_output(function, logger, suppression_threshold_level, *args): | CODE |
| LOW | darts/logging.py | 164 | def suppress_lightning_warnings(suppress_all: bool = False): | CODE |
| LOW | darts/config.py | 168 | def _on_plotting_style_change(self, value: bool) -> None: | CODE |
| LOW | darts/timeseries.py | 5100 | def _observed_freq_datetime_index(index: pd.DatetimeIndex) -> set: | CODE |
| LOW | darts/timeseries.py | 5123 | def _observed_freq_integer_index(index: pd.Index) -> set: | CODE |
| LOW | darts/timeseries.py | 5274 | def _get_first_timestamp_after(self, ts: pd.Timestamp) -> pd.Timestamp | int: | CODE |
| LOW | darts/timeseries.py | 5277 | def _get_last_timestamp_before(self, ts: pd.Timestamp) -> pd.Timestamp | int: | CODE |
| LOW | darts/metrics/__init__.py | 229 | def _build_time_dependent_metrics(): | CODE |
| LOW | darts/metrics/__init__.py | 234 | def _build_classification_metrics(): | CODE |
| LOW | darts/metrics/utils.py | 128 | def wrapper_classification_support(*args, **kwargs): | CODE |
| LOW | darts/metrics/utils.py | 166 | def unregister_metric_callback(callback: Callable) -> None: | CODE |
| LOW | darts/metrics/utils.py | 353 | def wrapper_multivariate_support(*args, **kwargs) -> METRIC_OUTPUT_TYPE: | CODE |
| LOW | darts/metrics/utils.py | 732 | def _get_highest_probability_label( | CODE |
| LOW | darts/ad/utils.py | 88 | def eval_metric_from_binary_prediction( | CODE |
| LOW | darts/ad/utils.py | 294 | def show_anomalies_from_scores( | CODE |
| LOW | darts/ad/utils.py | 742 | def _plot_series_and_anomalies( | CODE |
| LOW | darts/ad/scorers/scorers.py | 118 | def eval_metric_from_prediction( | CODE |
| LOW | darts/ad/scorers/scorers.py | 163 | def show_anomalies_from_prediction( | CODE |
| LOW | darts/ad/scorers/scorers.py | 252 | def _score_core_from_prediction( | CODE |
| LOW | darts/ad/scorers/scorers.py | 308 | def _extract_deterministic_series(self, series: TimeSeries, name_series: str): | CODE |
| LOW | darts/ad/scorers/scorers.py | 320 | def _extract_deterministic_values(self, series: np.ndarray, name_series: str): | CODE |
| LOW | darts/ad/scorers/scorers.py | 650 | def _score_core_from_prediction( | CODE |
| LOW | darts/ad/scorers/scorers.py | 879 | def _convert_tabular_to_series( | CODE |
| LOW | darts/ad/scorers/scorers.py | 933 | def _score_core_from_prediction( | CODE |
| LOW | darts/ad/scorers/norm_scorer.py | 55 | def _score_core_from_prediction( | CODE |
| LOW | darts/ad/scorers/difference_scorer.py | 23 | def _score_core_from_prediction( | CODE |
| LOW | …ocessing/transformers/static_covariates_transformer.py | 229 | def _process_static_cov_columns( | CODE |
| LOW | …ocessing/transformers/static_covariates_transformer.py | 265 | def _create_category_mappings( | CODE |
| LOW | …ocessing/transformers/static_covariates_transformer.py | 331 | def _create_inv_component_masks( | CODE |
| LOW | darts/dataprocessing/transformers/midas.py | 397 | def _get_high_freq_period_start( | CODE |
| LOW | darts/dataprocessing/transformers/midas.py | 462 | def _process_static_covariates( | CODE |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 151 | def generate_train_inference_idx( | CODE |
| LOW | darts/dataprocessing/encoders/encoders.py | 1563 | def _process_input_transformer( | CODE |
| LOW | darts/datasets/dataset_loaders.py | 90 | def _check_dataset_integrity_or_raise(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 122 | def test_df_time_col_not_present(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 128 | def test_df_invalid_time_col_dtype(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 185 | def test_creation_from_dataframe_with_dates(self, backend, date_type): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 220 | def test_integer_range_indexing(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 602 | def test_slice_n_points_integer(self, times): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 614 | def test_slice_n_points_integer_not_in_index(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 881 | def test_append_prepend_dtype_conversion(self, dt_source, dt_vals): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 2176 | def test_longest_contiguous_slice_index_types(self, times): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 2198 | def test_with_columns_renamed(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 2751 | def helper_test_append_values(test_series: TimeSeries): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 2787 | def helper_test_prepend_values(test_series: TimeSeries): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3055 | def test_creation_with_hierarchy_sunny_day(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3063 | def test_with_hierarchy_sunny_day(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3067 | def test_with_hierarchy_rainy_day(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3246 | def test_head_sunny_day_sample_axis(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3251 | def test_head_overshot_time_axis(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3256 | def test_head_overshot_component_axis(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3260 | def test_head_overshot_sample_axis(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3264 | def test_head_numeric_time_index(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3269 | def test_tail_overshot_time_axis(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3274 | def test_tail_overshot_component_axis(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3278 | def test_tail_overshot_sample_axis(self): | CODE |
| LOW⚡ | darts/tests/test_timeseries.py | 3282 | def test_tail_numeric_time_index(self): | CODE |
| 1463 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | darts/ad/scorers/nll_cauchy_scorer.py | 0 | nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to | STRING |
| HIGH | darts/ad/scorers/nll_gamma_scorer.py | 0 | nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to | STRING |
| HIGH | darts/ad/scorers/scorers.py | 0 | nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to | STRING |
| HIGH | darts/ad/scorers/nll_poisson_scorer.py | 0 | nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to | STRING |
| HIGH | darts/ad/scorers/nll_gaussian_scorer.py | 0 | nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to | STRING |
| HIGH | darts/ad/scorers/nll_exponential_scorer.py | 0 | nll laplace scorer parameters ---------- window integer value indicating the size of the window w used by the scorer to | STRING |
| HIGH | darts/ad/scorers/nll_laplace_scorer.py | 0 | nll 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.py | 0 | applies the (invertible) transform `transformed_series = scale * series + translation`. when 'fitting' this transform, t | STRING |
| HIGH | …cessing/transformers/test_fittable_data_transformer.py | 0 | applies the (invertible) transform `transformed_series = scale * series + translation`. when 'fitting' this transform, t | STRING |
| HIGH | …nsformers/test_invertible_fittable_data_transformer.py | 0 | applies the (invertible) transform `transformed_series = scale * series + translation`. when 'fitting' this transform, t | STRING |
| HIGH | …ssing/transformers/test_invertible_data_transformer.py | 0 | applies the (invertible) transform `transformed_series = scale * series + translation`. when 'fitting' this transform, t | STRING |
| HIGH | …aprocessing/transformers/test_base_data_transformer.py | 0 | implements the transform `scale * series + translation`. if `component_mask` is in `kwargs`, this is manually applied an | STRING |
| HIGH | …cessing/transformers/test_fittable_data_transformer.py | 0 | implements the transform `scale * series + translation`. if `component_mask` is in `kwargs`, this is manually applied an | STRING |
| HIGH | …nsformers/test_invertible_fittable_data_transformer.py | 0 | implements the transform `scale * series + translation`. if `component_mask` is in `kwargs`, this is manually applied an | STRING |
| HIGH | …ssing/transformers/test_invertible_data_transformer.py | 0 | implements the transform `scale * series + translation`. if `component_mask` is in `kwargs`, this is manually applied an | STRING |
| HIGH | …aprocessing/transformers/test_base_data_transformer.py | 0 | tests 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.py | 0 | tests 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.py | 0 | tests 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.py | 0 | tests that `stack_samples` and `unstack_samples` correctly implemented when considering multi-sample timeseries. | STRING |
| HIGH | …cessing/transformers/test_fittable_data_transformer.py | 0 | tests that `stack_samples` and `unstack_samples` correctly implemented when considering multi-sample timeseries. | STRING |
| HIGH | …nsformers/test_invertible_fittable_data_transformer.py | 0 | tests that `stack_samples` and `unstack_samples` correctly implemented when considering multi-sample timeseries. | STRING |
| HIGH | …ssing/transformers/test_invertible_data_transformer.py | 0 | tests that `stack_samples` and `unstack_samples` correctly implemented when considering multi-sample timeseries. | STRING |
| HIGH | …aprocessing/transformers/test_base_data_transformer.py | 0 | tests that automatic component masking is correctly implemented, and that manual component masking is also handled corre | STRING |
| HIGH | …cessing/transformers/test_fittable_data_transformer.py | 0 | tests that automatic component masking is correctly implemented, and that manual component masking is also handled corre | STRING |
| HIGH | …nsformers/test_invertible_fittable_data_transformer.py | 0 | tests that automatic component masking is correctly implemented, and that manual component masking is also handled corre | STRING |
| HIGH | …ssing/transformers/test_invertible_data_transformer.py | 0 | tests that automatic component masking is correctly implemented, and that manual component masking is also handled corre | STRING |
| HIGH | …tils/historical_forecasts/test_historical_forecasts.py | 0 | check that passing sample weights work and that it yields different results than without sample weights. | STRING |
| HIGH | darts/tests/models/forecasting/test_residuals.py | 0 | check that passing sample weights work and that it yields different results than without sample weights. | STRING |
| HIGH | darts/tests/models/forecasting/test_backtesting.py | 0 | check that passing sample weights work and that it yields different results than without sample weights. | STRING |
| HIGH | …s/tabularization/test_create_lagged_prediction_data.py | 0 | tests the `create_lagged_training_data` function defined in `darts.utils.data.tabularization`. there are broadly two 'gr | STRING |
| HIGH | …s/tests/utils/tabularization/test_get_feature_times.py | 0 | tests the `create_lagged_training_data` function defined in `darts.utils.data.tabularization`. there are broadly two 'gr | STRING |
| HIGH | …ils/tabularization/test_create_lagged_training_data.py | 0 | tests the `create_lagged_training_data` function defined in `darts.utils.data.tabularization`. there are broadly two 'gr | STRING |
| HIGH | …s/tabularization/test_create_lagged_prediction_data.py | 0 | helper function called by `get_feature_times` that extracts all times within `future_covariates` that can be used to cre | STRING |
| HIGH | …s/tests/utils/tabularization/test_get_feature_times.py | 0 | helper function called by `get_feature_times` that extracts all times within `future_covariates` that can be used to cre | STRING |
| HIGH | …ils/tabularization/test_create_lagged_training_data.py | 0 | helper function called by `get_feature_times` that extracts all times within `future_covariates` that can be used to cre | STRING |
| HIGH | darts/tests/models/forecasting/test_timesfm2p5.py | 0 | load validation inputs for timesfm3model fidelity tests. the data imports here are adapted from the `20-sklearnmodel-exa | STRING |
| HIGH | darts/tests/models/forecasting/test_chronos2.py | 0 | load validation inputs for timesfm3model fidelity tests. the data imports here are adapted from the `20-sklearnmodel-exa | STRING |
| HIGH | darts/tests/models/forecasting/test_patchtst_fm.py | 0 | load validation inputs for timesfm3model fidelity tests. the data imports here are adapted from the `20-sklearnmodel-exa | STRING |
| HIGH | darts/tests/models/forecasting/test_timesfm3.py | 0 | load validation inputs for timesfm3model fidelity tests. the data imports here are adapted from the `20-sklearnmodel-exa | STRING |
| HIGH | darts/utils/likelihood_models/sklearn.py | 0 | samples a prediction from the likelihood distribution and the predicted parameters. | STRING |
| HIGH | darts/utils/likelihood_models/torch.py | 0 | samples a prediction from the likelihood distribution and the predicted parameters. | STRING |
| HIGH | darts/utils/likelihood_models/statsforecast.py | 0 | samples a prediction from the likelihood distribution and the predicted parameters. | STRING |
| HIGH | darts/models/forecasting/catboost_model.py | 0 | sklearn classifier model can be used to fit any scikit-learn-like classifier class to predict the target time series wit | STRING |
| HIGH | darts/models/forecasting/xgboost.py | 0 | sklearn classifier model can be used to fit any scikit-learn-like classifier class to predict the target time series wit | STRING |
| HIGH | darts/models/forecasting/linear_regression_model.py | 0 | sklearn classifier model can be used to fit any scikit-learn-like classifier class to predict the target time series wit | STRING |
| HIGH | darts/models/forecasting/lgbm.py | 0 | sklearn classifier model can be used to fit any scikit-learn-like classifier class to predict the target time series wit | STRING |
| HIGH | darts/models/forecasting/sklearn_model.py | 0 | sklearn classifier model can be used to fit any scikit-learn-like classifier class to predict the target time series wit | STRING |
| HIGH | darts/models/forecasting/catboost_model.py | 0 | fit/train the model on one or multiple series. parameters ---------- series timeseries or sequence[timeseries] object co | STRING |
| HIGH | darts/models/forecasting/xgboost.py | 0 | fit/train the model on one or multiple series. parameters ---------- series timeseries or sequence[timeseries] object co | STRING |
| HIGH | darts/models/forecasting/lgbm.py | 0 | fit/train the model on one or multiple series. parameters ---------- series timeseries or sequence[timeseries] object co | STRING |
| HIGH | darts/models/forecasting/sklearn_model.py | 0 | fit/train the model on one or multiple series. parameters ---------- series timeseries or sequence[timeseries] object co | STRING |
| HIGH | darts/models/forecasting/catboost_model.py | 0 | returns the name of the categorical features parameter from model's `fit` method . | STRING |
| HIGH | darts/models/forecasting/lgbm.py | 0 | returns the name of the categorical features parameter from model's `fit` method . | STRING |
| HIGH | darts/models/forecasting/sklearn_model.py | 0 | returns the name of the categorical features parameter from model's `fit` method . | STRING |
| HIGH | darts/models/forecasting/sf_auto_ces.py | 0 | auto-theta based on the `statsforecasts package <https://github.com/nixtla/statsforecast>`__. automatically selects the | STRING |
| HIGH | darts/models/forecasting/sf_auto_ets.py | 0 | auto-theta based on the `statsforecasts package <https://github.com/nixtla/statsforecast>`__. automatically selects the | STRING |
| HIGH | darts/models/forecasting/sf_auto_theta.py | 0 | auto-theta based on the `statsforecasts package <https://github.com/nixtla/statsforecast>`__. automatically selects the | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | darts/__init__.py | 8 | CODE | |
| LOW | darts/__init__.py | 8 | CODE | |
| LOW | darts/__init__.py | 8 | CODE | |
| LOW | darts/__init__.py | 8 | CODE | |
| LOW | darts/__init__.py | 8 | CODE | |
| LOW | darts/__init__.py | 15 | CODE | |
| LOW | darts/__init__.py | 15 | CODE | |
| LOW | darts/__init__.py | 15 | CODE | |
| LOW | darts/__init__.py | 15 | CODE | |
| LOW | darts/typing.py | 16 | CODE | |
| LOW | darts/timeseries.py | 42 | CODE | |
| LOW | darts/metrics/__init__.py | 109 | CODE | |
| LOW | darts/metrics/__init__.py | 110 | CODE | |
| LOW | darts/metrics/__init__.py | 111 | CODE | |
| LOW | darts/metrics/__init__.py | 112 | CODE | |
| LOW | darts/metrics/__init__.py | 113 | CODE | |
| LOW | darts/metrics/__init__.py | 114 | CODE | |
| LOW | darts/metrics/__init__.py | 115 | CODE | |
| LOW | darts/metrics/__init__.py | 118 | CODE | |
| LOW | darts/metrics/__init__.py | 119 | CODE | |
| LOW | darts/metrics/__init__.py | 120 | CODE | |
| LOW | darts/metrics/__init__.py | 121 | CODE | |
| LOW | darts/metrics/__init__.py | 122 | CODE | |
| LOW | darts/metrics/__init__.py | 123 | CODE | |
| LOW | darts/metrics/__init__.py | 124 | CODE | |
| LOW | darts/metrics/__init__.py | 125 | CODE | |
| LOW | darts/metrics/__init__.py | 126 | CODE | |
| LOW | darts/metrics/__init__.py | 127 | CODE | |
| LOW | darts/metrics/__init__.py | 128 | CODE | |
| LOW | darts/metrics/__init__.py | 129 | CODE | |
| LOW | darts/metrics/__init__.py | 130 | CODE | |
| LOW | darts/metrics/__init__.py | 131 | CODE | |
| LOW | darts/metrics/__init__.py | 132 | CODE | |
| LOW | darts/metrics/__init__.py | 133 | CODE | |
| LOW | darts/metrics/__init__.py | 134 | CODE | |
| LOW | darts/metrics/__init__.py | 135 | CODE | |
| LOW | darts/metrics/__init__.py | 136 | CODE | |
| LOW | darts/metrics/__init__.py | 137 | CODE | |
| LOW | darts/metrics/__init__.py | 138 | CODE | |
| LOW | darts/metrics/__init__.py | 139 | CODE | |
| LOW | darts/metrics/__init__.py | 140 | CODE | |
| LOW | darts/metrics/__init__.py | 141 | CODE | |
| LOW | darts/metrics/__init__.py | 142 | CODE | |
| LOW | darts/metrics/__init__.py | 143 | CODE | |
| LOW | darts/metrics/__init__.py | 144 | CODE | |
| LOW | darts/metrics/__init__.py | 145 | CODE | |
| LOW | darts/metrics/__init__.py | 146 | CODE | |
| LOW | darts/metrics/__init__.py | 147 | CODE | |
| LOW | darts/metrics/__init__.py | 148 | CODE | |
| LOW | darts/metrics/__init__.py | 149 | CODE | |
| LOW | darts/metrics/__init__.py | 150 | CODE | |
| LOW | darts/metrics/__init__.py | 151 | CODE | |
| LOW | darts/metrics/__init__.py | 152 | CODE | |
| LOW | darts/metrics/__init__.py | 153 | CODE | |
| LOW | darts/metrics/__init__.py | 154 | CODE | |
| LOW | darts/ad/__init__.py | 34 | CODE | |
| LOW | darts/ad/__init__.py | 35 | CODE | |
| LOW | darts/ad/__init__.py | 38 | CODE | |
| LOW | darts/ad/__init__.py | 39 | CODE | |
| LOW | darts/ad/__init__.py | 40 | CODE | |
| 233 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | darts/timeseries.py | 103 | CODE | |
| LOW | darts/timeseries.py | 574 | CODE | |
| LOW | darts/timeseries.py | 679 | CODE | |
| LOW | darts/timeseries.py | 842 | CODE | |
| LOW | darts/timeseries.py | 1213 | CODE | |
| LOW | darts/timeseries.py | 4436 | CODE | |
| LOW | darts/timeseries.py | 4527 | CODE | |
| LOW | darts/metrics/metrics.py | 41 | CODE | |
| LOW | darts/metrics/metrics.py | 226 | CODE | |
| LOW | darts/metrics/metrics.py | 411 | CODE | |
| LOW | darts/metrics/metrics.py | 542 | CODE | |
| LOW | darts/metrics/metrics.py | 668 | CODE | |
| LOW | darts/metrics/metrics.py | 853 | CODE | |
| LOW | darts/metrics/metrics.py | 988 | CODE | |
| LOW | darts/metrics/metrics.py | 1201 | CODE | |
| LOW | darts/metrics/metrics.py | 1323 | CODE | |
| LOW | darts/metrics/metrics.py | 1515 | CODE | |
| LOW | darts/metrics/metrics.py | 1637 | CODE | |
| LOW | darts/metrics/metrics.py | 1743 | CODE | |
| LOW | darts/metrics/metrics.py | 1856 | CODE | |
| LOW | darts/metrics/metrics.py | 1975 | CODE | |
| LOW | darts/metrics/metrics.py | 2081 | CODE | |
| LOW | darts/metrics/metrics.py | 2198 | CODE | |
| LOW | darts/metrics/metrics.py | 2318 | CODE | |
| LOW | darts/metrics/metrics.py | 2418 | CODE | |
| LOW | darts/metrics/metrics.py | 2534 | CODE | |
| LOW | darts/metrics/metrics.py | 2645 | CODE | |
| LOW | darts/metrics/metrics.py | 2705 | CODE | |
| LOW | darts/metrics/metrics.py | 3028 | CODE | |
| LOW | darts/metrics/metrics.py | 3448 | CODE | |
| LOW | darts/metrics/metrics.py | 3553 | CODE | |
| LOW | darts/metrics/metrics.py | 3650 | CODE | |
| LOW | darts/metrics/metrics.py | 3782 | CODE | |
| LOW | darts/metrics/metrics.py | 3881 | CODE | |
| LOW | darts/metrics/metrics.py | 3993 | CODE | |
| LOW | darts/metrics/metrics.py | 4088 | CODE | |
| LOW | darts/metrics/metrics.py | 4200 | CODE | |
| LOW | darts/metrics/metrics.py | 4390 | CODE | |
| LOW | darts/metrics/metrics.py | 4508 | CODE | |
| LOW | darts/metrics/metrics.py | 4626 | CODE | |
| LOW | darts/ad/utils.py | 294 | CODE | |
| LOW | darts/ad/anomaly_model/forecasting_am.py | 60 | CODE | |
| LOW | darts/ad/anomaly_model/forecasting_am.py | 147 | CODE | |
| LOW | darts/ad/anomaly_model/forecasting_am.py | 234 | CODE | |
| LOW | darts/ad/anomaly_model/forecasting_am.py | 319 | CODE | |
| LOW | darts/ad/anomaly_model/forecasting_am.py | 418 | CODE | |
| LOW | darts/ad/anomaly_model/forecasting_am.py | 528 | CODE | |
| LOW | darts/dataprocessing/dtw/_plot.py | 4 | CODE | |
| LOW | …taprocessing/transformers/fittable_data_transformer.py | 25 | CODE | |
| LOW | darts/dataprocessing/transformers/window_transformer.py | 14 | CODE | |
| LOW | darts/tests/metrics/test_metrics.py | 2376 | CODE | |
| LOW | darts/tests/models/forecasting/test_sklearn_models.py | 74 | CODE | |
| LOW | darts/utils/mlflow.py | 292 | CODE | |
| LOW | darts/utils/mlflow.py | 509 | CODE | |
| LOW | darts/utils/mlflow.py | 644 | CODE | |
| LOW | darts/utils/timeseries_generation.py | 93 | CODE | |
| LOW | darts/utils/timeseries_generation.py | 154 | CODE | |
| LOW | darts/utils/timeseries_generation.py | 223 | CODE | |
| LOW | darts/utils/timeseries_generation.py | 305 | CODE | |
| LOW | darts/utils/_plotting.py | 171 | CODE | |
| 75 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | docs/fix_package_titles.py | 104 | # Check if it's a package (has __init__.py) | COMMENT |
| LOW⚡ | docs/fix_package_titles.py | 107 | # Check if it's a module (has .py file) | COMMENT |
| LOW | docs/fix_package_titles.py | 130 | # Check if this is a package RST file (contains ".. currentmodule::") | COMMENT |
| LOW | darts/tests/test_timeseries_plotly.py | 212 | # Check if the alpha is present in the fillcolor string | COMMENT |
| LOW | darts/tests/test_timeseries_plotly.py | 449 | # Check if the trace color is green (Plotly stores this in marker or line) | COMMENT |
| LOW⚡ | darts/tests/ad/test_detectors.py | 64 | # Check if return type is TimeSeries when input is a single series | COMMENT |
| LOW⚡ | darts/tests/ad/test_detectors.py | 66 | # Check if return type is Sequence when input is a Sequence of series | COMMENT |
| LOW⚡ | darts/tests/ad/test_detectors.py | 82 | # Check if return type is float when input is a series | COMMENT |
| LOW⚡ | darts/tests/ad/test_detectors.py | 87 | # Check if return type is Sequence when input is a Sequence of series | COMMENT |
| LOW⚡ | darts/tests/ad/test_detectors.py | 96 | # Check if return type is Sequence when input is a multivariate series | COMMENT |
| LOW⚡ | darts/tests/ad/test_detectors.py | 103 | # Check if return type is Sequence when input is a multivariate series | COMMENT |
| LOW | darts/tests/ad/test_detectors.py | 159 | # Check if _fit_called is False | COMMENT |
| LOW | darts/tests/ad/test_detectors.py | 174 | # Check if _fit_called is True after being fitted | COMMENT |
| LOW | darts/tests/ad/test_detectors.py | 185 | # Check if _fit_called is True after being fitted | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 173 | # Check if return type is float when input is a series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 178 | # Check if return type is Sequence when input is a Sequence of series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 184 | # Check if return type is Sequence when input is a multivariate series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 190 | # Check if return type is Sequence when input is a multivariate series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 202 | # Check if return type is float when input is a series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 205 | # Check if return type is Sequence when input is a sequence of series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 209 | # Check if return type is Sequence when input is a multivariate series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 212 | # Check if return type is Sequence when input is a sequence of multivariate series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 217 | # Check if return type is float when input is a series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 222 | # Check if return type is Sequence when input is a Sequence of series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 229 | # Check if return type is Sequence when input is a multivariate series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 235 | # Check if return type is Sequence when input is a multivariate series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 243 | # Check if return type is float when input is a series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 250 | # Check if return type is Sequence when input is a Sequence of series | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 257 | # 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.py | 264 | # 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.py | 273 | # 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.py | 280 | # 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.py | 600 | # Check if _fit_called is True after being fitted | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 608 | # Check if _fit_called is True after being fitted | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 618 | # Check if _fit_called is True after being fitted | COMMENT |
| LOW⚡ | darts/tests/ad/test_scorers.py | 628 | # Check if _fit_called is True after being fitted | COMMENT |
| LOW | darts/tests/ad/test_scorers.py | 451 | # Check if trainable is False, being a NonFittableAnomalyScorer | COMMENT |
| LOW | darts/tests/ad/test_scorers.py | 503 | # Check if _fit_called is False | COMMENT |
| LOW | darts/tests/ad/test_anomaly_model.py | 475 | # Check if return type is float when input is a series | COMMENT |
| LOW | darts/tests/ad/test_anomaly_model.py | 481 | # Check if return type is Sequence when input is a Sequence of series | COMMENT |
| LOW | darts/tests/ad/test_aggregators.py | 229 | # Check if return type is the same number of series in input | COMMENT |
| LOW | darts/tests/ad/test_aggregators.py | 464 | # Check if _fit_called is False before calling fit | COMMENT |
| LOW | darts/tests/ad/test_aggregators.py | 470 | # Check if _fit_called is True after calling fit | COMMENT |
| LOW | darts/models/forecasting/sklearn_model.py | 456 | # Check if only default lags are provided | COMMENT |
| LOW | darts/models/forecasting/sklearn_model.py | 1059 | # Check if multi-output regression is required | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/fix_package_titles.py | 46 | # ================== | COMMENT |
| MEDIUM | docs/fix_package_titles.py | 153 | # ============ | COMMENT |
| MEDIUM | docs/source/conf.py | 196 | # --------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | darts/tests/models/forecasting/foundation_test_utils.py | 17 | # ── Artefact paths ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | darts/tests/models/forecasting/foundation_test_utils.py | 34 | # ── T0 tiny model ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | darts/tests/models/forecasting/foundation_test_utils.py | 61 | # ── HuggingFace mock download (Chronos-2 tiny artefact) ──────────────────── | COMMENT |
| MEDIUM | darts/tests/models/forecasting/foundation_test_utils.py | 84 | # ── TiRex stub ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | darts/tests/models/forecasting/foundation_test_utils.py | 108 | # ── TimesFM 2.5 tiny model ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | darts/utils/serialization/registry.py | 202 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | darts/utils/serialization/registry.py | 204 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | darts/utils/serialization/torch.py | 39 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | darts/utils/serialization/torch.py | 41 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | darts/utils/serialization/torch.py | 89 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | darts/utils/serialization/torch.py | 91 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | darts/utils/serialization/torch.py | 155 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | darts/utils/serialization/torch.py | 157 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | darts/utils/serialization/base.py | 39 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | darts/utils/serialization/base.py | 41 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | darts/utils/serialization/base.py | 69 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | darts/utils/serialization/base.py | 71 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | darts/utils/serialization/base.py | 142 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | darts/utils/serialization/base.py | 144 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | darts/utils/serialization/base.py | 233 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | darts/utils/serialization/base.py | 235 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | darts/utils/serialization/base.py | 505 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | darts/utils/serialization/base.py | 507 | # --------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | darts/timeseries.py | 103 | CODE | |
| LOW | darts/timeseries.py | 1785 | CODE | |
| LOW | darts/timeseries.py | 2369 | CODE | |
| LOW | darts/timeseries.py | 5633 | CODE | |
| LOW | darts/ad/utils.py | 142 | CODE | |
| LOW | darts/dataprocessing/dtw/cost_matrix.py | 115 | CODE | |
| LOW | darts/dataprocessing/transformers/reconciliation.py | 231 | CODE | |
| LOW | …ocessing/transformers/static_covariates_transformer.py | 265 | CODE | |
| LOW | …ocessing/transformers/static_covariates_transformer.py | 450 | CODE | |
| LOW | darts/dataprocessing/encoders/encoders.py | 1450 | CODE | |
| LOW | darts/datasets/dataset_loaders.py | 145 | CODE | |
| LOW | darts/tests/test_timeseries.py | 1440 | CODE | |
| LOW | darts/tests/test_timeseries_plot.py | 70 | CODE | |
| LOW | darts/tests/dataprocessing/encoders/test_encoders.py | 325 | CODE | |
| LOW | darts/tests/utils/test_timeseries_generation.py | 209 | CODE | |
| LOW | …tils/historical_forecasts/test_historical_forecasts.py | 1834 | CODE | |
| LOW | …tils/historical_forecasts/test_historical_forecasts.py | 3037 | CODE | |
| LOW | …tils/historical_forecasts/test_historical_forecasts.py | 4674 | CODE | |
| LOW | …tils/historical_forecasts/test_historical_forecasts.py | 4785 | CODE | |
| LOW | …s/tabularization/test_create_lagged_prediction_data.py | 231 | CODE | |
| LOW | …ils/tabularization/test_create_lagged_training_data.py | 259 | CODE | |
| LOW | …ils/tabularization/test_create_lagged_training_data.py | 415 | CODE | |
| LOW | darts/tests/models/forecasting/test_TCN.py | 75 | CODE | |
| LOW | darts/tests/models/forecasting/test_dlinear_nlinear.py | 132 | CODE | |
| LOW | …/tests/models/forecasting/test_probabilistic_models.py | 620 | CODE | |
| LOW | darts/tests/models/forecasting/test_sklearn_models.py | 380 | CODE | |
| LOW | darts/tests/models/forecasting/test_sklearn_models.py | 695 | CODE | |
| LOW | darts/tests/models/forecasting/test_sklearn_models.py | 1666 | CODE | |
| LOW | darts/tests/models/forecasting/test_sklearn_models.py | 395 | CODE | |
| LOW | darts/tests/models/forecasting/test_conformal_model.py | 1174 | CODE | |
| LOW | darts/tests/optional_deps/test_mlflow.py | 1532 | CODE | |
| LOW | darts/utils/mlflow.py | 1636 | CODE | |
| LOW | darts/utils/mlflow.py | 1765 | CODE | |
| LOW | darts/utils/mlflow.py | 1837 | CODE | |
| LOW | darts/utils/_plotting.py | 27 | CODE | |
| LOW | darts/utils/_plotting.py | 171 | CODE | |
| LOW | darts/utils/utils.py | 756 | CODE | |
| LOW | darts/utils/statistics.py | 140 | CODE | |
| LOW | darts/utils/ts_utils.py | 56 | CODE | |
| LOW | darts/utils/ts_utils.py | 185 | CODE | |
| LOW | darts/utils/serialization/base.py | 390 | CODE | |
| LOW | darts/utils/historical_forecasts/utils.py | 98 | CODE | |
| LOW | darts/utils/historical_forecasts/utils.py | 360 | CODE | |
| LOW | darts/utils/historical_forecasts/utils.py | 1105 | CODE | |
| LOW | darts/utils/historical_forecasts/utils.py | 1415 | CODE | |
| LOW | …forecasts/optimized_historical_forecasts_regression.py | 23 | CODE | |
| LOW | darts/utils/data/torch_datasets/dataset.py | 69 | CODE | |
| LOW | darts/utils/data/tabularization/tabularization.py | 1525 | CODE | |
| LOW | darts/utils/data/tabularization/tabularization.py | 1777 | CODE | |
| LOW | darts/utils/likelihood_models/sklearn.py | 672 | CODE | |
| LOW | darts/models/components/tft_submodels.py | 369 | CODE | |
| LOW | darts/models/forecasting/ensemble_model.py | 71 | CODE | |
| LOW | darts/models/forecasting/ensemble_model.py | 234 | CODE | |
| LOW | darts/models/forecasting/ensemble_model.py | 761 | CODE | |
| LOW | darts/models/forecasting/prophet_model.py | 631 | CODE | |
| LOW | darts/models/forecasting/tft_model.py | 978 | CODE | |
| LOW | darts/models/forecasting/conformal_models.py | 1082 | CODE | |
| LOW | darts/models/forecasting/forecasting_model.py | 690 | CODE | |
| LOW | darts/models/forecasting/forecasting_model.py | 2065 | CODE | |
| LOW | darts/models/forecasting/fft.py | 82 | CODE | |
| 11 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | darts/tests/test_timeseries.py | 2740 | # Creating a gap is not allowed | COMMENT |
| MEDIUM⚡ | darts/tests/test_timeseries.py | 2776 | # Creating a gap is not allowed | COMMENT |
| MEDIUM | darts/tests/test_timeseries_plotly.py | 292 | # Create a univariate deterministic series | COMMENT |
| MEDIUM | darts/tests/test_timeseries_plotly.py | 339 | # Define a side effect for the mock import | COMMENT |
| MEDIUM | …tils/historical_forecasts/test_historical_forecasts.py | 4679 | # Create a custom model that tracks fit and predict arguments | COMMENT |
| MEDIUM | …tils/historical_forecasts/test_historical_forecasts.py | 4795 | # Create a custom Pipeline subclass that tracks fit, transform, and inverse_transform arguments | COMMENT |
| MEDIUM | darts/tests/models/forecasting/foundation_test_utils.py | 35 | # Create a local checkpoint for t0-alpha model. | COMMENT |
| MEDIUM⚡ | darts/tests/models/forecasting/test_prophet.py | 377 | # Create a simple timeseries | COMMENT |
| MEDIUM | …ts/models/forecasting/test_local_forecasting_models.py | 652 | # Create a custom model that tracks fit and predict arguments | COMMENT |
| MEDIUM | darts/tests/optional_deps/test_ray.py | 52 | # Create the model using model_args from Ray Tune | COMMENT |
| MEDIUM | darts/tests/optional_deps/test_ray.py | 92 | # Define the trainable function that will be tuned by Ray Tune | COMMENT |
| MEDIUM | darts/tests/optional_deps/test_ray.py | 110 | # Create the Tuner object and run the hyperparameter search | COMMENT |
| MEDIUM | darts/utils/mlflow.py | 684 | # Create a training session to track the training process and log information | COMMENT |
| MEDIUM | darts/models/forecasting/block_rnn_model.py | 165 | # Defining the RNN module | COMMENT |
| MEDIUM | darts/models/forecasting/transformer_model.py | 278 | # Defining the Transformer module | COMMENT |
| MEDIUM | darts/models/forecasting/pl_forecasting_module.py | 457 | # Create the optimizer and (optionally) the learning rate scheduler | COMMENT |
| MEDIUM | darts/models/forecasting/rnn_model.py | 171 | # Defining the RNN module | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | darts/config.py | 259 | except ImportError: | CODE |
| HIGH | darts/metrics/utils.py | 170 | except ValueError: | CODE |
| HIGH | darts/tests/conftest.py | 63 | except FileNotFoundError: | CODE |
| HIGH | darts/tests/test_logging.py | 60 | except Exception: | CODE |
| HIGH | darts/tests/test_config.py | 177 | except ValueError: | CODE |
| HIGH | …s/tests/utils/serialization/test_serialization_base.py | 238 | except Exception: | CODE |
| HIGH | darts/utils/mlflow.py | 592 | except ImportError: | CODE |
| HIGH | darts/utils/mlflow.py | 599 | except (ImportError, Exception): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/fix_package_titles.py | 81 | except Exception: | CODE |
| LOW | darts/metrics/utils.py | 757 | except Exception: | CODE |
| LOW | darts/datasets/dataset_loaders.py | 137 | except Exception as e: | CODE |
| LOW | darts/datasets/dataset_loaders.py | 161 | except Exception as e: | CODE |
| LOW | darts/datasets/dataset_loaders.py | 226 | except Exception as e: | CODE |
| LOW | darts/tests/test_logging.py | 25 | except Exception: | CODE |
| LOW | darts/tests/test_logging.py | 60 | except Exception: | CODE |
| LOW | …s/tests/utils/serialization/test_serialization_base.py | 238 | except Exception: | CODE |
| LOW | …serialization/test_serialization_forecasting_models.py | 230 | except Exception: | CODE |
| LOW | darts/utils/mlflow.py | 1020 | except Exception: | CODE |
| LOW | darts/utils/ts_utils.py | 221 | except Exception as err: | CODE |
| LOW | darts/utils/serialization/registry.py | 234 | except Exception as e: # pragma: no cover - defensive only | CODE |
| LOW⚡ | darts/utils/serialization/base.py | 249 | except Exception: # pragma: no cover | CODE |
| LOW⚡ | darts/utils/serialization/base.py | 259 | except Exception: # pragma: no cover | CODE |
| LOW⚡ | darts/utils/serialization/base.py | 269 | except Exception: # pragma: no cover | CODE |
| LOW⚡ | darts/utils/serialization/base.py | 279 | except Exception: # pragma: no cover | CODE |
| LOW⚡ | darts/utils/serialization/base.py | 290 | except Exception: # pragma: no cover | CODE |
| LOW⚡ | darts/utils/serialization/base.py | 300 | except Exception: # pragma: no cover | CODE |
| LOW⚡ | darts/utils/serialization/base.py | 317 | except Exception: # pragma: no cover | CODE |
| LOW⚡ | darts/utils/serialization/base.py | 327 | except Exception: # pragma: no cover | CODE |
| LOW⚡ | darts/utils/serialization/base.py | 337 | except Exception: # pragma: no cover | CODE |
| LOW⚡ | darts/utils/serialization/base.py | 385 | except Exception: # pragma: no cover | CODE |
| LOW | darts/utils/serialization/base.py | 359 | except Exception: # pragma: no cover | CODE |
| LOW | darts/utils/serialization/base.py | 435 | except Exception: # pragma: no cover | CODE |
| LOW | darts/models/forecasting/forecasting_model.py | 2344 | except Exception as err: | STRING |
| LOW | darts/models/forecasting/global_baseline_models.py | 401 | except Exception as err: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | darts/timeseries.py | 4288 | # More robust than predicting from window params, as some functions | COMMENT |
| MEDIUM | darts/metrics/utils.py | 65 | # Note: for new metrics added to this module to be able to leverage the two decorators, it is required both having | COMMENT |
| MEDIUM | darts/dataprocessing/transformers/midas.py | 124 | """MIDAS needs the high frequency period name in order to easily reverse_transform | STRING |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 275 | # user supplied covariates: simply return the covariate time index; guarantees that an exception is | COMMENT |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 316 | # user supplied covariates: simply return the covariate time index; guarantees that an exception is | COMMENT |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 374 | # user supplied covariates: simply return the covariate time index; guarantees that models raise an | COMMENT |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 378 | # simply return the target time index. | COMMENT |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 424 | # user supplied covariates: simply return the covariate time index; guarantees that an exception is | COMMENT |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 428 | # simply return the target time index. | COMMENT |
| LOW | darts/tests/ad/test_scorers.py | 845 | # test plotting (just call the functions) | COMMENT |
| MEDIUM | darts/models/forecasting/sf_model.py | 24 | """This serves as a protocol for expected StatsForecast model API.""" | STRING |
| MEDIUM | darts/models/forecasting/torch_forecasting_model.py | 3034 | # warning messages formatted to facilitate copy-pasting | COMMENT |
| MEDIUM | darts/models/forecasting/linear_regression_model.py | 242 | # assign the Quantile regressor to self.model to leverage existing logic | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | darts/config.py | 304 | def set_option(self, pattern: str, value: Any) -> None: | CODE |
| LOW | darts/config.py | 391 | def set_option(pat: str, value: Any) -> None: | CODE |
| LOW | darts/__init__.py | 24 | __all__ = [ | CODE |
| LOW | darts/ad/anomaly_model/__init__.py | 28 | __all__ = [ | CODE |
| LOW | darts/ad/aggregators/__init__.py | 19 | __all__ = [ | CODE |
| LOW | darts/ad/scorers/__init__.py | 83 | __all__ = [ | CODE |
| LOW | darts/ad/detectors/__init__.py | 25 | __all__ = [ | CODE |
| LOW | darts/dataprocessing/__init__.py | 11 | __all__ = ["Pipeline"] | CODE |
| LOW | darts/dataprocessing/dtw/__init__.py | 19 | __all__ = [ | CODE |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 892 | def _update_mask(self, covariates: list[TimeSeries]) -> None: | CODE |
| LOW | darts/dataprocessing/encoders/__init__.py | 21 | __all__ = [ | CODE |
| LOW | darts/dataprocessing/encoders/encoders.py | 1388 | def _setup_encoders(self, params: dict) -> None: | CODE |
| LOW | darts/dataprocessing/encoders/encoders.py | 1427 | def _setup_transformer(self, params: dict) -> None: | CODE |
| LOW | darts/utils/__init__.py | 15 | __all__ = [ | CODE |
| LOW | darts/utils/onnx/__init__.py | 10 | __all__ = [ | CODE |
| LOW | darts/utils/serialization/__init__.py | 15 | __all__ = [ | CODE |
| LOW | darts/utils/data/tabularization/__init__.py | 23 | __all__ = [ | CODE |
| LOW | darts/models/components/timesfm3_submodels.py | 689 | def set_input_dims(self, input_dim: int) -> None: | CODE |
| LOW | examples/utils/__init__.py | 3 | __all__ = ["fix_pythonpath_if_working_locally"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/source/conf.py | 1 | # Configuration file for the Sphinx documentation builder. | COMMENT |
| LOW | docs/source/conf.py | 181 | } | COMMENT |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 381 | # target index; always True for all models except SKLearnModels. | COMMENT |
| LOW | darts/dataprocessing/encoders/encoder_base.py | 421 | COMMENT | |
| LOW | darts/tests/ad/test_anomaly_model.py | 261 | ) | COMMENT |
| LOW | darts/models/forecasting/timesfm2p5_model.py | 241 | # Q = Z / I: patches for the input chunk | COMMENT |
| LOW | darts/models/forecasting/ensemble_model.py | 661 | int | None, | COMMENT |
| LOW | darts/models/forecasting/block_rnn_model.py | 201 | self.fc = nn.Sequential(*feats) | COMMENT |
| LOW | darts/models/forecasting/t0_model.py | 121 | # Dimension notation in comments below: | COMMENT |
| LOW | darts/models/forecasting/nf_model.py | 221 | # - `insample_mask`: (B, L) | COMMENT |
| LOW | darts/models/forecasting/nf_model.py | 281 | if x_static is not None: | COMMENT |
| LOW | darts/models/forecasting/tirex_model.py | 81 | COMMENT | |
| LOW | darts/models/forecasting/tsmixer_model.py | 1 | """ | COMMENT |
| LOW | .github/scripts/libomp-macOS.sh | 1 | brew install libomp | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | darts/utils/historical_forecasts/utils.py | 730 | # get the first and last historical forecast start points for either (re)training or (zero shot) prediction | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/fix_package_titles.py | 31 | # Extract docstring (enclosed by `"""lorem ipsum"""` or `'''lorem ipsum'''`) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | darts/explainability/utils.py | 170 | # make sure to remove any encodings from covariates if downstream tasks require covariates without encodings | COMMENT |