MCPcopy Create free account

hub / github.com/unit8co/darts / functions

Functions3,734 in github.com/unit8co/darts

↓ 1 callersMethod__init__
Chronos-2 Model for zero-shot forecasting. This is an implementation of Amazon's Chronos-2 model [1]_, [2]_, ported from `amazon-scie
darts/models/forecasting/chronos2_model.py:582
↓ 1 callersMethod__init__
An implementation of the NLinear model, as presented in [1]_. This implementation is improved by allowing the optional use of past covariates
darts/models/forecasting/nlinear.py:186
↓ 1 callersMethod__init__
LGBM Model Parameters ---------- lags Lagged target `series` values used to predict the next time step/s.
darts/models/forecasting/lgbm.py:39
↓ 1 callersMethod__init__
Model-specific adapter between Darts forecasting models and the SHAP library. Parameters ---------- model A fitte
darts/explainability/shap_adapters/shap_adapter.py:43
↓ 1 callersMethod__iter__
(self)
darts/dataprocessing/dtw/cost_matrix.py:41
↓ 1 callersMethod__sklearn_tags__
(self)
darts/tests/models/forecasting/test_classifier_model.py:1160
↓ 1 callersMethod__str__
(self)
darts/dataprocessing/pipeline.py:329
↓ 1 callersMethod__str__
(self)
darts/dataprocessing/transformers/base_data_transformer.py:724
↓ 1 callersMethod_add_back_static_covs
Adds transformed static covariates back to original `TimeSeries`. The categorical component mapping is used to correctly name categor
darts/dataprocessing/transformers/static_covariates_transformer.py:454
↓ 1 callersMethod_add_val_set_to_kwargs
Creates a validation set and returns a new set of kwargs passed to `self.model.fit()` including the validation set. This method can be overrid
darts/models/forecasting/sklearn_model.py:721
↓ 1 callersFunction_adjust_historical_forecasts_time_index_training
Shrink the beginning of the historical forecasts time index based on the value of `retrain`, `train_length` and `val_length`.
darts/utils/historical_forecasts/utils.py:1058
↓ 1 callersFunction_all_equal_freq
Returns `True` if all specified (i.e. non-`None`) `series` have the same frequency.
darts/utils/data/tabularization/tabularization.py:2082
↓ 1 callersMethod_apply_interval
Applies the calibrated interval to the predicted quantiles. Returns an array with `len(quantiles)` conformalized quantile predictions (lower q
darts/models/forecasting/conformal_models.py:1488
↓ 1 callersMethod_assert_multivariate
(self, series: TimeSeries)
darts/models/forecasting/forecasting_model.py:2767
↓ 1 callersMethod_assert_stochastic
Checks if the series is stochastic (number of samples is larger than one).
darts/ad/scorers/scorers.py:307
↓ 1 callersFunction_auto_fill
This function fills the missing values in the TimeSeries `series`, using the `pandas.Dataframe.interpolate()` method. Parameters ---
darts/utils/missing_values.py:150
↓ 1 callersFunction_bartlett_formula
Computes the standard error of `r` at order `m` with respect to `length` according to Bartlett's formula. Parameters ---------- r
darts/utils/statistics.py:115
↓ 1 callersMethod_base_model_predict_n
Minimum prediction horizon for base models to satisfy the ensemble (regression) model's future covariate requirements during predict.
darts/models/forecasting/ensemble_model.py:347
↓ 1 callersMethod_build_feature_names
Builds the feature names for the SHAP explanations based on the input features used by the forecasting model. See above for the namin
darts/explainability/shap_adapters/shap_adapter.py:357
↓ 1 callersMethod_build_mixer
Build the mixer blocks for the model.
darts/models/forecasting/tsmixer_model.py:427
↓ 1 callersMethod_calibrate_interval
Computes the lower and upper calibrated forecast intervals based on residuals. Parameters ---------- residuals Th
darts/models/forecasting/conformal_models.py:1476
↓ 1 callersMethod_check_ckpt_parameters
Check that the positional parameters used to instantiate the new model loading the weights match those of the saved model, to return
darts/models/forecasting/torch_forecasting_model.py:2749
↓ 1 callersMethod_check_dataset_integrity_or_raise
Ensures that the dataset exists and its MD5 checksum matches the expected hash. Raises ------- DatasetLoadingExcepti
darts/datasets/dataset_loaders.py:90
↓ 1 callersFunction_check_lags
Throws `ValueError` if any `lag` values aren't negative OR if no lags have been specified.
darts/utils/data/tabularization/tabularization.py:2090
↓ 1 callersMethod_check_optimizable_historical_forecasts
By default, historical forecasts cannot be optimized
darts/models/forecasting/forecasting_model.py:663
↓ 1 callersMethod_check_rinorm_compatibility
( self, signature: inspect.Signature, )
darts/models/forecasting/nf_model.py:727
↓ 1 callersFunction_check_series_length
Throws `ValueError` if `series` is too short for specified `lags` and, when `is_training`, `output_chunk_length`.
darts/utils/data/tabularization/tabularization.py:2129
↓ 1 callersFunction_check_valid_input
Checks that the input is valid
darts/explainability/utils.py:308
↓ 1 callersMethod_check_window_size
Checks if the parameter window is less or equal than the length of the given series
darts/ad/scorers/scorers.py:295
↓ 1 callersFunction_classification_handling
Handles the classification metrics input parameters and checks.
darts/metrics/utils.py:478
↓ 1 callersMethod_clean
Returns a cleaned instance of the model. Has no effect for local forecasting models.
darts/models/forecasting/forecasting_model.py:2662
↓ 1 callersMethod_clean
Returns a cleaned model, keeping only the necessary attributes for prediction.
darts/models/forecasting/torch_forecasting_model.py:2042
↓ 1 callersFunction_clean_components
Return a `pandas.Index` with unique string component / column names
darts/timeseries.py:6295
↓ 1 callersFunction_compare_timestamps_on_attributes
Compares pd.Timestamp instances on attributes. Compares two timestamps according two a given set of attributes (such as minute, hour, day, etc.).
darts/models/forecasting/fft.py:142
↓ 1 callersMethod_compute_loss
(self, output, target, criterion, sample_weight)
darts/models/forecasting/pl_forecasting_module.py:435
↓ 1 callersFunction_concat_hierarchy
Concatenate the hierarchies of multiple series, when concatenating series along axis 1 (components). This simply merges the hierarchy dictionaries
darts/timeseries.py:5986
↓ 1 callersFunction_concat_static_covs
Concatenate static covariates along the component axis (rows of static covariates). Use this for stacking or concatenating time series along compo
darts/timeseries.py:5925
↓ 1 callersFunction_const_fill
Fills the missing values of `series` with only the value provided (default zeroes). Parameters ---------- series The TimeSer
darts/utils/missing_values.py:121
↓ 1 callersMethod_construct_and_invert_group_time_mask
( group_ids: torch.Tensor, attention_mask: torch.Tensor, floating_type: torch.dtype,
darts/models/components/chronos2_submodels.py:700
↓ 1 callersMethod_convert_tabular_to_series
Converts generated anomaly score from `np.ndarray` into a sequence of series. For efficiency reasons, the anomaly scores were computed in one
darts/ad/scorers/scorers.py:890
↓ 1 callersMethod_create_category_mappings
Returns mapping from names of untransformed categorical static covariates names and names of transformed categorical static covariate
darts/dataprocessing/transformers/static_covariates_transformer.py:268
↓ 1 callersMethod_create_inv_component_masks
Returns a boolean array indicating which components of the TRANSFORMED `stat_covs` are numerical and a boolean array indicating which
darts/dataprocessing/transformers/static_covariates_transformer.py:334
↓ 1 callersFunction_create_lagged_data_autoregression
Extract lagged data from target, past covariates and future covariates for auto-regression with SKLearnModels.
darts/utils/data/tabularization/tabularization.py:1417
↓ 1 callersFunction_create_lagged_data_by_intersecting_times
Helper function called by `_create_lagged_data` that computes `X`, `y`, and `times` by first finding the time points in each series that *cou
darts/utils/data/tabularization/tabularization.py:1262
↓ 1 callersFunction_create_lagged_data_by_moving_window
Helper function called by `create_lagged_data` that computes `X`, `y`, and `times` by extracting 'moving windows' from each series using the
darts/utils/data/tabularization/tabularization.py:1034
↓ 1 callersMethod_create_model
This method has to be implemented by all children. It is in charge of instantiating the actual torch model, based on examples input/o
darts/models/forecasting/torch_forecasting_model.py:590
↓ 1 callersMethod_create_transformer_inputs
(self, data)
darts/models/forecasting/transformer_model.py:288
↓ 1 callersFunction_crop_to_match_seasons
Crops TimeSeries instance to contain full periods. Crops a given TimeSeries `series` that will be used as a training set in such a way that i
darts/models/forecasting/fft.py:169
↓ 1 callersMethod_detect_core
(self, series: TimeSeries, name: str = "series")
darts/ad/detectors/detectors.py:108
↓ 1 callersMethod_detect_n_components
Test the callable with sample `pd.DatetimeIndex` and `pd.RangeIndex` to determine the number of output components.
darts/dataprocessing/encoders/encoders.py:741
↓ 1 callersMethod_download_dataset
Downloads the dataset in the root_path directory Raises ------- DatasetLoadingException if downloading o
darts/datasets/dataset_loaders.py:115
↓ 1 callersMethod_download_zip_dataset
(self)
darts/datasets/dataset_loaders.py:144
↓ 1 callersMethod_eager_attention
Eager attention implementation using manual matmul. Args: query_states: [batch, n_heads, seq_len, kv_proj_dim] key_st
darts/models/components/chronos2_submodels.py:276
↓ 1 callersMethod_estimator_predict
Computes the model output. Parameters ---------- model The Darts `SKLearnModel`. x T
darts/utils/likelihood_models/sklearn.py:98
↓ 1 callersMethod_estimator_predict
Computes the model output. When this method is called, it is guaranteed that either `series` is None, or that the model supp
darts/models/forecasting/sf_model.py:308
↓ 1 callersMethod_expand_and_invert_time_attention_mask
( attention_mask: torch.Tensor, floating_type: torch.dtype )
darts/models/components/chronos2_submodels.py:684
↓ 1 callersFunction_expand_window
(low_res_path: np.ndarray, n: int, m: int, radius: int)
darts/dataprocessing/dtw/dtw.py:76
↓ 1 callersFunction_extend_series_for_overlap_end
Extends each target `series` to the end of the last historical forecast for that series. Fills the values all missing dates with `np.nan`. As
darts/utils/historical_forecasts/utils.py:1591
↓ 1 callersFunction_extend_time_index_until
( time_index: TimeIndex, until: int | str | pd.Timestamp | None, add_length: int, name, )
darts/utils/timeseries_generation.py:440
↓ 1 callersMethod_extract_auto_seasonality
Returns the automatically added seasonalities by Prophet's base model based on kwargs of model creation
darts/models/forecasting/prophet_model.py:613
↓ 1 callersFunction_extract_component_lags_autoregression
Extract, concatenate and reorder component-wise lags to obtain a feature order identical to tabularization.
darts/utils/data/tabularization/tabularization.py:1494
↓ 1 callersMethod_extract_deterministic_series
Extract a deterministic series from `series` (quantile=0.5 if `series` is probabilistic).
darts/ad/scorers/scorers.py:318
↓ 1 callersMethod_extract_model_creation_params
extracts immutable model creation parameters from `ModelMeta` and deletes reference.
darts/models/forecasting/forecasting_model.py:2642
↓ 1 callersMethod_extract_module_params
Extract params from `config` to set up the given `module_class`.
darts/models/components/huggingface_connector.py:186
↓ 1 callersMethod_extract_static_covs
Extracts all static covariates from a `TimeSeries`, and then extracts the numerical and categorical components to transform from thes
darts/dataprocessing/transformers/static_covariates_transformer.py:443
↓ 1 callersFunction_fast_dtw
( x: np.ndarray, y: np.ndarray, dist: DistanceFunc, radius: int, depth: int = 0 )
darts/dataprocessing/dtw/dtw.py:117
↓ 1 callersMethod_fill_missing_dates
Return the time index and values with missing dates inserted. This requires either a provided `freq` or the possibility to infer a unique fre
darts/timeseries.py:4996
↓ 1 callersMethod_find_list_index
(index, cumulative_lengths, bounds, stride)
darts/utils/data/torch_datasets/inference_dataset.py:211
↓ 1 callersMethod_fit
Fits/trains the model on the provided series. DualCovariatesModels must implement the fit logic in this method.
darts/models/forecasting/forecasting_model.py:3287
↓ 1 callersMethod_fit_core
(self, series: Sequence[TimeSeries])
darts/ad/detectors/detectors.py:171
↓ 1 callersMethod_fit_core
(self, series: Sequence[TimeSeries], *args, **kwargs)
darts/ad/scorers/scorers.py:651
↓ 1 callersMethod_fit_core
Abstract method to implement the model and scorer training.
darts/ad/anomaly_model/anomaly_model.py:332
↓ 1 callersMethod_fit_core
Fits the aggregator, assuming the input is in the correct shape. Parameters ---------- anomalies The (sequence of
darts/ad/aggregators/aggregators.py:148
↓ 1 callersMethod_forecast_quantiles
(self, context, prediction_length: int, **_kwargs)
darts/tests/models/forecasting/test_tirex.py:59
↓ 1 callersMethod_format_samples
CatBoost currently only supports categorical features as int. If categorical features are specified, the samples are converted into a
darts/models/forecasting/catboost_model.py:467
↓ 1 callersMethod_format_time_column
(self, df)
darts/datasets/dataset_loaders.py:192
↓ 1 callersMethod_forward
Original forward pass of the TimesFM 2.5 model. Parameters ---------- inputs Input tensor of shape (batch_size, n
darts/models/forecasting/timesfm2p5_model.py:181
↓ 1 callersMethod_forward
Original forward pass of the Chronos-2 model. Parameters ---------- context Input tensor of shape (batch_size, co
darts/models/forecasting/chronos2_model.py:346
↓ 1 callersMethod_forward
Private method to implement the forward method in the subclasses.
darts/models/forecasting/global_baseline_models.py:94
↓ 1 callersMethod_from_window
Creates a cost matrix from a window. Depending on the density of the active cells in the window, will select either a dense o
darts/dataprocessing/dtw/cost_matrix.py:54
↓ 1 callersMethod_full_future_covariates_support
(self)
darts/models/forecasting/ensemble_model.py:841
↓ 1 callersMethod_full_past_covariates_support
(self)
darts/models/forecasting/ensemble_model.py:836
↓ 1 callersMethod_generate_lags
Based on the type of the argument and the nature of the covariates, perform some sanity checks before converting the lags to a list o
darts/models/forecasting/sklearn_model.py:322
↓ 1 callersFunction_get_active_colorway
(fig)
darts/utils/_plotting.py:430
↓ 1 callersMethod_get_batch_prediction
Generates batch predictions. Feeds `PLForecastingModule` with past, future, and static features to forecast the next ``n`` target values
darts/models/forecasting/pl_forecasting_module.py:583
↓ 1 callersMethod_get_default_model_params
Get parameter key : default_value pairs for the estimator
darts/models/forecasting/forecasting_model.py:2814
↓ 1 callersMethod_get_default_shap_method
Return the default SHAP method.
darts/explainability/shap_adapters/shap_adapter.py:427
↓ 1 callersMethod_get_end_of_output_idx
(self, series, series_idx, idx)
darts/utils/data/torch_datasets/training_dataset.py:308
↓ 1 callersMethod_get_fitted_params
Returns `self._fitted_params` if `calling_fit = False`, otherwise returns an empty tuple. If `calling_fit = False`, also checks that
darts/dataprocessing/transformers/fittable_data_transformer.py:396
↓ 1 callersFunction_get_highest_count_label
Computes the mode (value with the highest frequency) for all time steps and components. Parameters ---------- vals A numpy array
darts/metrics/utils.py:706
↓ 1 callersFunction_get_highest_probability_label
Computes the class label with highest probability for all time steps and components. Parameters ---------- vals A numpy array wit
darts/metrics/utils.py:719
↓ 1 callersMethod_get_lagged_features
Returns a list of lagged features for the target, past, future, and static covariates. The returned lagged features are in the same order as
darts/models/forecasting/sklearn_model.py:483
↓ 1 callersFunction_get_lagged_indices
Computes and returns: - the lagged feature indices for extraction from windows - the reordered indices to apply after the window extraction (
darts/utils/data/tabularization/tabularization.py:996
↓ 1 callersFunction_get_logs_folder
(work_dir, model_name)
darts/models/forecasting/torch_forecasting_model.py:107
↓ 1 callersFunction_get_maximum_historical_forecastable_time_index
Computes the maximum historical forecastable time index for training or prediction mode. Only accounts for `is_training`, `forecast_horizon`, `ov
darts/utils/historical_forecasts/utils.py:805
↓ 1 callersMethod_get_median_prediction
Gets the median prediction per component extracted from the model output.
darts/utils/likelihood_models/sklearn.py:118
↓ 1 callersMethod_get_params
Overrides `_get_params` of `BaseDataTransformer`. Creates generator of dictionaries containing both the fixed parameter values (i.e.
darts/dataprocessing/transformers/fittable_data_transformer.py:341
↓ 1 callersMethod_get_statistics
(self, x: torch.Tensor, mask: torch.Tensor | None = None)
darts/models/components/patchtst_fm_submodels.py:70
↓ 1 callersMethod_get_vertical_split_indices
(self, ts_length)
darts/utils/model_selection.py:77
↓ 1 callersFunction_historical_forecasts_general_checks
Performs checks common to ForecastingModel and SKLearnModel backtest() methods Parameters ---------- model The forecasting m
darts/utils/historical_forecasts/utils.py:40
← previousnext →701–800 of 3,734, ranked by callers