MCPcopy Create free account

hub / github.com/unit8co/darts / functions

Functions3,734 in github.com/unit8co/darts

↓ 2 callersMethodcolumn_index
Gives the number of active grid cells before row element j, in column i. Parameters ---------- elem (i,j) index,
darts/dataprocessing/dtw/window.py:38
↓ 2 callersMethodcolumn_lengths
Gives the number of activate grid cells in each column. Returns ------- np.ndarray of shape (n+1,) The number of
darts/dataprocessing/dtw/window.py:71
↓ 2 callersMethodconfigure_torch_metrics
process the torch_metrics parameter.
darts/models/forecasting/pl_forecasting_module.py:807
↓ 2 callersMethodconvert_lags_to_dict
Convert lags to the dictionary format, assuming the lags are shared across the components
darts/tests/utils/tabularization/test_create_lagged_training_data.py:408
↓ 2 callersMethodcreate_y
Helper function that constructs the labels array `y` from the target series. This is done by by looping over each time in `feature_ti
darts/tests/utils/tabularization/test_create_lagged_training_data.py:354
↓ 2 callersFunctiondataframe_col_to_time_index
Convert a dataframe column to a pandas Index or DatetimeIndex. Parameters ---------- df The dataframe containing the time column.
darts/utils/utils.py:760
↓ 2 callersMethoddenoising_input
(self)
darts/tests/models/forecasting/test_regression_ensemble_model.py:513
↓ 2 callersFunctiondtw_metric
Applies Dynamic Time Warping to `actual_series` and `pred_series` before passing it into the metric. Enables comparison between series of dif
darts/metrics/metrics.py:2711
↓ 2 callersFunctiondummy_timeseries
( length, n_series=1, comps_target=1, comps_pcov=1, comps_fcov=1, multiseries_offset=0
darts/tests/models/forecasting/test_sklearn_models.py:77
↓ 2 callersMethodexpand_static_context
add time dimension to static context
darts/models/forecasting/tft_model.py:379
↓ 2 callersFunctionextract_docstring_from_file
Extract the full docstring from a Python file. Returns: Tuple of (title, body) where body is the docstring content without the title sect
docs/fix_package_titles.py:18
↓ 2 callersMethodfilter
Computes a moving average of this series' values and returns a new TimeSeries. The returned series has the same length and time axis
darts/models/filtering/moving_average_filter.py:29
↓ 2 callersMethodfit
(self, data)
darts/tests/dataprocessing/test_pipeline.py:62
↓ 2 callersMethodfit
Fits the scorer on the given time series. If a sequence of series, the scorer is fitted on the concatenation of the sequence. The as
darts/ad/scorers/scorers.py:396
↓ 2 callersMethodfit
( self, series: TimeSeries, future_covariates: TimeSeries | None = None, verbo
darts/models/forecasting/varima.py:126
↓ 2 callersFunctionformat_row
(k, v)
darts/utils/_formatting.py:71
↓ 2 callersMethodforward
(self, data: torch.Tensor)
darts/tests/utils/test_callbacks.py:39
↓ 2 callersMethodforward
(self, x: torch.Tensor, skip: torch.Tensor)
darts/models/forecasting/tft_submodels.py:277
↓ 2 callersMethodgenerate_inference_idx
( self, n: int, target: TimeSeries, covariates: TimeSeries | None = None )
darts/dataprocessing/encoders/encoder_base.py:423
↓ 2 callersFunctiongenerate_samples
()
darts/tests/models/forecasting/test_classifier_model.py:794
↓ 2 callersFunctiongenerate_series
(n_variables: int, length: int, prefix: str)
darts/tests/models/forecasting/test_foundation.py:24
↓ 2 callersMethodgenerate_train_idx
( self, target: TimeSeries, covariates: TimeSeries | None = None )
darts/dataprocessing/encoders/encoder_base.py:274
↓ 2 callersFunctionget_embedding_size
Determine empirically good embedding sizes (formula taken from fastai). Args: n (int): number of classes max_size (int, optio
darts/models/forecasting/tft_submodels.py:38
↓ 2 callersMethodget_feature_times
Helper function that returns the times shared by all of the specified series that can be used to create features and labels. This is
darts/tests/utils/tabularization/test_create_lagged_prediction_data.py:59
↓ 2 callersMethodget_feature_times
Helper function that returns the times shared by all specified series that can be used to create features and labels. This is perform
darts/tests/utils/tabularization/test_create_lagged_training_data.py:65
↓ 2 callersMethodget_feature_times_future
Helper function called by `_get_feature_times` that extracts all of the times within `future_covariates` that can be used to create f
darts/tests/utils/tabularization/test_get_feature_times.py:112
↓ 2 callersMethodget_global_ensemble_model
(output_chunk_length=5)
darts/tests/models/forecasting/test_regression_ensemble_model.py:117
↓ 2 callersMethodget_global_ensemble_model
(output_chunk_length=5)
darts/tests/models/forecasting/test_ensemble_models.py:848
↓ 2 callersFunctionget_module_info
Get the title and docstring body for a module or package. Args: module_name: Full module name like "darts.models.forecasting" sou
docs/fix_package_titles.py:85
↓ 2 callersMethodget_option
Get the value of an option.
darts/config.py:297
↓ 2 callersMethodget_projection_matrix
(series)
darts/dataprocessing/transformers/reconciliation.py:138
↓ 2 callersMethodhelper_create_RNNModel
(self, model_name: str, tmpdir_fn)
darts/tests/models/forecasting/test_torch_forecasting_model.py:2859
↓ 2 callersMethodhelper_create_expected_lagged_data
Helper function to create the X and y arrays by building them block by block (one per covariates).
darts/tests/utils/tabularization/test_create_lagged_training_data.py:431
↓ 2 callersMethodhelper_eval_metric_multiple_series
Evaluate model on multiple series, for all 4 supported metric functions
darts/tests/ad/test_aggregators.py:152
↓ 2 callersMethodhelper_fit_predict
simple helper that returns prediction for the individual test cases
darts/tests/models/forecasting/test_TFT.py:358
↓ 2 callersMethodhelper_generate_input_series
(self)
darts/tests/models/forecasting/test_prophet.py:351
↓ 2 callersMethodhelper_generate_multivariate_case_data
generates multivariate test case data. Target series is a sine wave stacked with a repeating linear curve of equal seasonal length. Covariates
darts/tests/models/forecasting/test_TFT.py:265
↓ 2 callersMethodhelper_predict_raise_on_missing_input
Helper function to test that the model raises an error when calling `predict()` or `historical_forecasts()` after `fit_from_dataset()` with mi
darts/tests/models/forecasting/test_torch_forecasting_model.py:2749
↓ 2 callersFunctionhelper_test_append
(test_series: TimeSeries)
darts/tests/test_timeseries.py:2491
↓ 2 callersMethodhelper_test_encoder_single_train
Test `SingleEncoder.encode_train()`
darts/tests/dataprocessing/encoders/test_encoders.py:1411
↓ 2 callersMethodhelper_test_encoders_settings
(model, example: str)
darts/tests/models/forecasting/test_sklearn_models.py:3595
↓ 2 callersMethodhelper_test_index_generator_creation
(self, ig_cls, is_past=False)
darts/tests/dataprocessing/encoders/test_covariate_index_generators.py:205
↓ 2 callersFunctionhelper_test_intersect
(freq, is_mixed_freq: bool, is_univariate: bool)
darts/tests/test_timeseries.py:2325
↓ 2 callersMethodhelper_test_models_accuracy
( self, model_instance, n, series, past_covariates, min_rmse )
darts/tests/models/forecasting/test_regression_ensemble_model.py:496
↓ 2 callersFunctionhelper_test_prepend
(test_series: TimeSeries)
darts/tests/test_timeseries.py:2527
↓ 2 callersMethodhelper_test_probabilistic_forecast_accuracy
(self, model, err, ts, noisy_ts)
darts/tests/models/forecasting/test_sklearn_models.py:4595
↓ 2 callersMethodhelper_test_probabilistic_forecast_accuracy
(self, model, err, ts, noisy_ts)
darts/tests/models/forecasting/test_probabilistic_models.py:561
↓ 2 callersMethodhelper_test_prophet_model
Test which includes adding custom seasonalities and future covariates. The tests compare the output of univariate and stochastic forecasting w
darts/tests/models/forecasting/test_prophet.py:194
↓ 2 callersMethodhelper_test_reproducibility
(self, model1, model2)
darts/tests/utils/test_utils_torch.py:46
↓ 2 callersFunctionhelper_test_shift
(test_series: TimeSeries)
darts/tests/test_timeseries.py:2456
↓ 2 callersFunctionhelper_test_slice
(test_series: TimeSeries)
darts/tests/test_timeseries.py:2126
↓ 2 callersFunctionhelper_test_split
(test_series: TimeSeries)
darts/tests/test_timeseries.py:2225
↓ 2 callersMethodhelper_test_successive_call_are_different
(self, model)
darts/tests/utils/test_utils_torch.py:73
↓ 2 callersMethodhistorical_forecasts
Generates historical forecasts by simulating predictions at various points in time throughout the history of the provided (potentially multipl
darts/models/forecasting/forecasting_model.py:671
↓ 2 callersMethodinit_size
Called by dtw to initialize the window to a certain size. Parameters ---------- n The width of the windo
darts/dataprocessing/dtw/window.py:19
↓ 2 callersMethodkurtosis
Return a deterministic series with the kurtosis of each component computed over the samples of the stochastic series. This works only
darts/timeseries.py:4936
↓ 2 callersMethodlr_find
A wrapper around PyTorch Lightning's `Tuner.lr_find()`. Performs a range test of good initial learning rates, to reduce the amount of
darts/models/forecasting/torch_forecasting_model.py:1496
↓ 2 callersMethodmean_distance
Gives the mean distance between pair-wise elements in the two series after warping. Returns ------- float The mea
darts/dataprocessing/dtw/dtw.py:204
↓ 2 callersFunctionmissing_values_ratio
Computes the ratio of missing values Parameters ---------- series The time series to compute ratio on Returns -----
darts/utils/missing_values.py:12
↓ 2 callersFunctionplot_acf
Plots the Autocorrelation Function (ACF) of `ts`, highlighting it at lag `m`, with corresponding significance interval. Uses :func:`statsmode
darts/utils/statistics.py:624
↓ 2 callersFunctionplot_tolerance_curve
Plots the Tolerance Curve for evaluating forecast alignment. The tolerance curve shows, for each tolerance level (as a percentage of the act
darts/utils/statistics.py:1103
↓ 2 callersMethodpredict
Predict the ``n`` time step following the end of the training series, or of the specified ``series``. Prediction is performed with a PyTorch
darts/models/forecasting/torch_forecasting_model.py:1650
↓ 2 callersMethodpredict
( self, n: int, num_samples: int = 1, verbose: bool = False, show_warn
darts/models/forecasting/theta.py:402
↓ 2 callersMethodpredict_likelihood_parameters
Returns the distribution parameters as a single Tensor, extracted from the raw model outputs.
darts/utils/likelihood_models/torch.py:198
↓ 2 callersFunctionprocess_input
Helper function to process and check either of the background or foreground series input to `_ForecastingModelExplainer`. If no input was pro
darts/explainability/utils.py:21
↓ 2 callersFunctionraise_deprecation_warning
Raises a DeprecationWarning. Parameters ---------- message The message of the ValueError. logger The logger inst
darts/logging.py:30
↓ 2 callersMethodreset
Reset the option to its default value.
darts/config.py:92
↓ 2 callersMethodrotate_half
Rotates half the hidden dims of the input.
darts/models/components/chronos2_submodels.py:208
↓ 2 callersMethodscore
Compute anomaly score(s) for the given series. Predicts the given target time series with the forecasting model, and applies the scorer(s)
darts/ad/anomaly_model/anomaly_model.py:63
↓ 2 callersMethodset_predict_parameters
to be set from TorchForecastingModel before calling trainer.predict() and reset at self.on_predict_end()
darts/models/forecasting/pl_forecasting_module.py:418
↓ 2 callersMethodshow_anomalies
Plot the results of the scorer. Computes the score on the given series input. And plots the results. The plot will be composed of th
darts/ad/scorers/scorers.py:577
↓ 2 callersMethodskew
Return a deterministic series with the skew of each component computed over the samples of the stochastic series. This works only on
darts/timeseries.py:4914
↓ 2 callersFunctionslice_index
Returns a new Index with the same type as the input `index`, containing the values between `start` and `end` included. If start and end are n
darts/utils/utils.py:280
↓ 2 callersFunctionsmape
symmetric Mean Absolute Percentage Error (sMAPE). For the true series :math:`y` and predicted series :math:`\\hat{y}` of length :math:`T`, it is
darts/metrics/metrics.py:1932
↓ 2 callersFunctiontrain_test_split
Splits all provided TimeSeries instances into train and test sets according to the provided timestamp. Parameters ---------- feature
darts/tests/models/forecasting/test_classifier_model.py:55
↓ 2 callersMethodtransform
Transforms a (sequence of) of series by calling the user-implemeneted `ts_transform` method. In case a ``Sequence[TimeSeries]`` is passed as
darts/dataprocessing/transformers/base_data_transformer.py:295
↓ 2 callersMethodwarped
Warps the two time series according to the warp path returned by `DTWAlignment.path()`, which minimizes the pair-wise distance. This w
darts/dataprocessing/dtw/dtw.py:219
↓ 1 callersMethod__copy__
(self, deep: bool = True)
darts/dataprocessing/pipeline.py:323
↓ 1 callersMethod__eq__
(self, other)
darts/timeseries.py:5330
↓ 1 callersMethod__init__
Data transformer to apply a custom function to a (sequence of) ``TimeSeries`` (similar to calling :func:`TimeSeries.map()` on each se
darts/dataprocessing/transformers/mappers.py:27
↓ 1 callersMethod__init__
(self)
darts/dataprocessing/encoders/encoder_base.py:477
↓ 1 callersMethod__init__
Darts' Progress Bar for `TorchForecastingModels`. Allows to customize for which model stages (sanity checks, training, validation, prediction
darts/utils/callbacks.py:23
↓ 1 callersMethod__init__
Abstract class for all inference datasets that can be used with Darts' `TorchForecastingModel`. Provides samples to compute forecast
darts/utils/data/torch_datasets/inference_dataset.py:26
↓ 1 callersMethod__init__
Applies the (invertible) transform `transformed_series = scale * series + translation`. When 'fitting' this transform, the `s
darts/tests/dataprocessing/transformers/test_invertible_fittable_data_transformer.py:31
↓ 1 callersMethod__init__
Applies the transform `transformed_series = scale * series + translation`. When 'fitting' this transform, the `scale` and `tr
darts/tests/dataprocessing/transformers/test_fittable_data_transformer.py:22
↓ 1 callersMethod__init__
(self, **kwargs)
darts/tests/models/forecasting/test_block_RNN.py:26
↓ 1 callersMethod__init__
(self, **kwargs)
darts/tests/models/forecasting/test_RNN.py:21
↓ 1 callersMethod__init__
(self)
darts/tests/models/forecasting/test_torch_forecasting_model.py:140
↓ 1 callersMethod__init__
(self, *args: Any, **kwargs: Any)
darts/ad/detectors/detectors.py:40
↓ 1 callersMethod__init__
(self)
darts/ad/aggregators/aggregators.py:43
↓ 1 callersMethod__init__
(self, metadata: DatasetLoaderMetadata, root_path: Path | None = None)
darts/datasets/dataset_loaders.py:59
↓ 1 callersMethod__init__
Parameters ---------- ffn One of Darts' Position-wise Feed-Forward Network variants from darts.models.components.
darts/models/components/transformer.py:15
↓ 1 callersMethod__init__
XGBoost Model Parameters ---------- lags Lagged target `series` values used to predict the next time step/s.
darts/models/forecasting/xgboost.py:62
↓ 1 callersMethod__init__
CatBoost Model Parameters ---------- lags Lagged target `series` values used to predict the next time step/s.
darts/models/forecasting/catboost_model.py:52
↓ 1 callersMethod__init__
Random Forest Model Note: `RandomForest` is deprecated and will be removed in a future version. Use :class:`~darts.models.forecasting
darts/models/forecasting/random_forest.py:195
↓ 1 callersMethod__init__
(*args, **kwargs)
darts/models/forecasting/sf_model.py:30
↓ 1 callersMethod__init__
Temporal Fusion Transformers (TFT) for Interpretable Time Series Forecasting. This is an implementation of the TFT architecture, as outlined
darts/models/forecasting/tft_model.py:652
↓ 1 callersMethod__init__
TiRex foundation model for zero-shot time series forecasting. This is a Darts wrapper around the TiRex model introduced in Auer et a
darts/models/forecasting/tirex_model.py:148
↓ 1 callersMethod__init__
An implementation of the Theta method with configurable `theta` parameter. See [1]_. The training time series is de-seasonalized acc
darts/models/forecasting/theta.py:28
↓ 1 callersMethod__init__
TimesFM 2.5 Model for zero-shot forecasting. This is an implementation of Google's TimesFM 2.5 model, ported from `google-research/ti
darts/models/forecasting/timesfm2p5_model.py:349
← previousnext →601–700 of 3,734, ranked by callers