MCPcopy Create free account

hub / github.com/unit8co/darts / functions

Functions3,734 in github.com/unit8co/darts

↓ 1 callersFunction_historical_forecasts_sanitize_kwargs
Convert kwargs to dictionary, check that their content is compatible with called methods.
darts/utils/historical_forecasts/utils.py:493
↓ 1 callersMethod_import_nf_model_class
(model: str)
darts/models/forecasting/nf_model.py:670
↓ 1 callersMethod_init_trainer
Initializes a PyTorch-Lightning trainer for training or prediction from `trainer_params`.
darts/models/forecasting/torch_forecasting_model.py:574
↓ 1 callersMethod_invert_transformation
(self, series_df: pd.DataFrame)
darts/models/forecasting/varima.py:260
↓ 1 callersFunction_isnotebook
()
darts/utils/utils.py:116
↓ 1 callersMethod_load_encoders
Return the encoders from a model save with several sanity checks.
darts/models/forecasting/torch_forecasting_model.py:2661
↓ 1 callersMethod_load_from_disk
Given a Path to the file and a DataLoaderMetadata object, return a TimeSeries One can assume that the file exists and its MD5 checksu
darts/datasets/dataset_loaders.py:165
↓ 1 callersFunction_make_attn_mask
Makes attention mask.
darts/models/components/timesfm2p5_submodels.py:151
↓ 1 callersFunction_make_attn_mask
Build an additive attention mask of shape (B, Q, K) from query/key padding masks. Parameters ---------- query_pad (B, Q) bool or
darts/models/components/patchtst_fm_submodels.py:292
↓ 1 callersMethod_make_base_models
Build base models for combination tests. Returns a list of forecasting models, optionally pre-fitted when ``train_fcm=False``.
darts/tests/models/forecasting/test_regression_ensemble_model.py:1545
↓ 1 callersMethod_make_multiple_historical_forecasts
For GlobalForecastingModel, when predicting n > output_chunk_length, `historical_forecasts()` generally produce better forecasts than
darts/models/forecasting/regression_ensemble_model.py:265
↓ 1 callersFunction_max_pooling
Slides a window of size `window` along the input series, and replaces the value of the input time series by the maximum of the values contained in
darts/ad/utils.py:571
↓ 1 callersMethod_maybe_prepend_insample
Prepend the historic part of the `insample` series to the `series` if it is not None.
darts/dataprocessing/transformers/invertible_data_transformer.py:420
↓ 1 callersMethod_model_score_method
Wrapper around model inference method
darts/ad/scorers/scorers.py:791
↓ 1 callersFunction_modify_color_opacity
(color, alpha)
darts/utils/_plotting.py:451
↓ 1 callersFunction_my_timed_fn
()
darts/tests/test_logging.py:93
↓ 1 callersMethod_nllloss
This is the basic way to compute the NLL loss. It can be overwritten by likelihoods for which PyTorch proposes a numerically better N
darts/utils/likelihood_models/torch.py:158
↓ 1 callersMethod_observed_freq_datetime_index
Return all observed/inferred frequencies of a `pandas.DatetimeIndex`. The frequencies are inferred from all combinations of three consecutive
darts/timeseries.py:5092
↓ 1 callersFunction_optimized_historical_forecasts
Optimized historical forecasts for TorchForecastingModels Rely on _check_optimizable_historical_forecasts() to check that the assumptions ar
darts/utils/historical_forecasts/optimized_historical_forecasts_torch.py:24
↓ 1 callersMethod_optimized_historical_forecasts
( self, series: Sequence[TimeSeries], past_covariates: Sequence[TimeSeries] | None = N
darts/models/forecasting/forecasting_model.py:2843
↓ 1 callersFunction_optimized_historical_forecasts_regression
Optimized historical forecasts for SKLearnModel. Rely on _check_optimizable_historical_forecasts() to check that the assumptions are verifie
darts/utils/historical_forecasts/optimized_historical_forecasts_regression.py:26
↓ 1 callersMethod_params_from_output
(self, model_output)
darts/utils/likelihood_models/torch.py:300
↓ 1 callersMethod_params_from_output
(self, model_output)
darts/utils/likelihood_models/torch.py:355
↓ 1 callersMethod_params_from_output
(self, model_output: torch.Tensor)
darts/utils/likelihood_models/torch.py:457
↓ 1 callersMethod_params_from_output
(self, model_output)
darts/utils/likelihood_models/torch.py:507
↓ 1 callersMethod_params_from_output
(self, model_output)
darts/utils/likelihood_models/torch.py:561
↓ 1 callersMethod_params_from_output
(self, model_output: torch.Tensor)
darts/utils/likelihood_models/torch.py:610
↓ 1 callersMethod_params_from_output
(self, model_output: torch.Tensor)
darts/utils/likelihood_models/torch.py:707
↓ 1 callersMethod_params_from_output
(self, model_output: torch.Tensor)
darts/utils/likelihood_models/torch.py:756
↓ 1 callersMethod_params_from_output
(self, model_output: torch.Tensor)
darts/utils/likelihood_models/torch.py:802
↓ 1 callersMethod_params_from_output
(self, model_output: torch.Tensor)
darts/utils/likelihood_models/torch.py:850
↓ 1 callersMethod_params_from_output
(self, model_output: torch.Tensor)
darts/utils/likelihood_models/torch.py:896
↓ 1 callersMethod_params_from_output
(self, model_output: torch.Tensor)
darts/utils/likelihood_models/torch.py:944
↓ 1 callersMethod_params_from_output
(self, model_output)
darts/utils/likelihood_models/torch.py:993
↓ 1 callersMethod_params_from_output
(self, model_output: torch.Tensor)
darts/utils/likelihood_models/torch.py:1037
↓ 1 callersFunction_plot_series_and_anomalies
Helper function to plot series and anomalies. Parameters ---------- series The actual series to visualize anomalies from. ano
darts/ad/utils.py:766
↓ 1 callersMethod_poly_trend
Helper function, for consistency with the other trends
darts/models/forecasting/fft.py:298
↓ 1 callersMethod_predict
Generate predictions. Generates deterministic predictions if no `Likelihood` was used. Otherwise, generates probabilistic predictions
darts/models/forecasting/sklearn_model.py:1448
↓ 1 callersMethod_predict
Forecasts values for a certain number of time steps after the end of the series. DualCovariatesModels must implement the predict logic in this
darts/models/forecasting/forecasting_model.py:3384
↓ 1 callersMethod_predict
( self, n: int, series: TimeSeries | None = None, historic_future_covariates:
darts/models/forecasting/arima.py:164
↓ 1 callersMethod_predict_core
Aggregates the sequence of multivariate binary series given as input into a sequence of univariate binary series. assuming the input is
darts/ad/aggregators/aggregators.py:52
↓ 1 callersMethod_prepare_patched_context
( self, context: torch.Tensor, )
darts/models/forecasting/chronos2_model.py:220
↓ 1 callersMethod_prepare_patched_future
( self, future_covariates: torch.Tensor, loc_scale: tuple[torch.Tensor, torch.Tensor],
darts/models/forecasting/chronos2_model.py:270
↓ 1 callersMethod_prepare_pooling_downsampling
( pooling_kernel_sizes, n_freq_downsample, in_len, out_len, num_blocks, num_stacks )
darts/models/forecasting/nhits.py:767
↓ 1 callersMethod_process_input_encoders
Processes input and returns two lists of tuples `(encoder_id, attribute)` from relevant encoder parameters at model creation. Paramet
darts/dataprocessing/encoders/encoders.py:1454
↓ 1 callersMethod_process_input_transformer
Processes input params used at model creation and returns tuple of one transformer object and two masks that specify which past / future encod
darts/dataprocessing/encoders/encoders.py:1569
↓ 1 callersMethod_process_static_cov_columns
Extracts numerical and categorical static covariate (component / columns) names and their component masks in order of the input data.
darts/dataprocessing/transformers/static_covariates_transformer.py:232
↓ 1 callersMethod_process_static_covariates
If static covariates are component-specific, they must be reshaped appropriately.
darts/dataprocessing/transformers/midas.py:445
↓ 1 callersMethod_process_timezone
Processes input params used at model creation for time zone specification, and returns the time zone. Parameters ---------- p
darts/dataprocessing/encoders/encoders.py:1611
↓ 1 callersMethod_produce_train_output
Generates train output. Feeds `PLForecastingModule` with (past target + past cov + historic future cov (concatenated), future cov, st
darts/models/forecasting/pl_forecasting_module.py:531
↓ 1 callersMethod_query_explainability_result
Helper that extracts and returns the explainability result attribute for a given component. Parameters ---------- at
darts/explainability/explainability_result.py:92
↓ 1 callersFunction_regression_handling
Handles the regression metrics input parameters and checks.
darts/metrics/utils.py:424
↓ 1 callersMethod_remove_save_dirs
(self)
darts/models/forecasting/torch_forecasting_model.py:436
↓ 1 callersMethod_restore_range_indexed
Return `times` re-indexed into a `pandas.RangeIndex` and `values` in the re-indexed order. An integer `pandas.Index` can be converted to a `p
darts/timeseries.py:5125
↓ 1 callersMethod_sample_tiling
( input_data_tuple: tuple[torch.Tensor | None, ...], batch_sample_size )
darts/models/forecasting/pl_forecasting_module.py:717
↓ 1 callersMethod_score_core
( self, series: Sequence[TimeSeries], *args, **kwargs )
darts/ad/scorers/scorers.py:655
↓ 1 callersMethod_score_core_from_prediction
( self, vals: np.ndarray, pred_vals: np.ndarray, )
darts/ad/scorers/scorers.py:259
↓ 1 callersMethod_score_core_nllikelihood
For each timestamp, the corresponding distribution is fitted on the probabilistic time-series input_2, and returns the negative log-likelihood
darts/ad/scorers/scorers.py:983
↓ 1 callersMethod_sdpa_attention
SDPA attention implementation using torch.nn.functional.scaled_dot_product_attention. Args: query_states: [batch, n_heads, seq_le
darts/models/components/chronos2_submodels.py:308
↓ 1 callersMethod_set_likelihood
( self, likelihood: str | None, output_chunk_length: int, multi_models: bool,
darts/models/forecasting/xgboost.py:237
↓ 1 callersMethod_set_likelihood
( self, likelihood: str | None, output_chunk_length: int, multi_models: bool,
darts/models/forecasting/catboost_model.py:254
↓ 1 callersMethod_set_likelihood
( self, likelihood: str | None, output_chunk_length: int, multi_models: bool,
darts/models/forecasting/lgbm.py:230
↓ 1 callersMethod_setup_encoders
Sets up/Initializes all past and future encoders and an optional transformer from `add_encoder` parameter used at model creation. Pa
darts/dataprocessing/encoders/encoders.py:1392
↓ 1 callersMethod_setup_finetuning
Sets up the model for fine-tuning based on `self.enable_finetuning`.
darts/models/forecasting/torch_forecasting_model.py:523
↓ 1 callersMethod_setup_transformer
Sets up/Initializes an optional transformer from `add_encoder` parameter used at model creation. Parameters ---------- params
darts/dataprocessing/encoders/encoders.py:1431
↓ 1 callersMethod_stack_ts_multiseq
(self, predictions_list)
darts/models/forecasting/ensemble_model.py:337
↓ 1 callersMethod_stochastic_samples
Returns stochastic forecast of `n_samples` samples. This method is a replicate of Prophet.predict() which suspends simplification of stochasti
darts/models/forecasting/prophet_model.py:435
↓ 1 callersFunction_test_stationarity
(series: Sequence[TimeSeries])
darts/explainability/utils.py:376
↓ 1 callersFunction_tolerance_coverages
Computes the tolerance coverages for different tolerance levels. More info in metric `autc()`.
darts/metrics/metrics.py:2526
↓ 1 callersMethod_train
Performs the actual training Parameters ---------- train_loader the training data loader feeding the tra
darts/models/forecasting/torch_forecasting_model.py:1432
↓ 1 callersFunction_unique_labels
Returns unique labels for each component in the true and predicted labels.
darts/metrics/utils.py:943
↓ 1 callersFunction_unpack_sf_dict
Unpack the dictionary that is returned by the StatsForecast 'predict()' method. Into an array of quantile predictions with shape (n (horizon), n
darts/models/forecasting/sf_model.py:426
↓ 1 callersMethod_update_mask
if user supplied additional covariates to model.fit() or model.predict(), `self.transform_mask` has to be updated as user-defined covariates s
darts/dataprocessing/encoders/encoder_base.py:897
↓ 1 callersMethod_update_metrics
(self, output, target, metrics)
darts/models/forecasting/pl_forecasting_module.py:447
↓ 1 callersMethod_update_nf_model_params
( self, input_chunk_length: int, output_chunk_length: int, random_state: int |
darts/models/forecasting/nf_model.py:753
↓ 1 callersFunction_update_running_stats
Updates the running stats.
darts/models/components/timesfm2p5_submodels.py:448
↓ 1 callersMethod_validate_categorical_components
Check if categorical features are integer-encoded
darts/models/forecasting/sklearn_model.py:1917
↓ 1 callersMethod_validate_input_for_querying_explainability_result
Helper that validates the input parameters of a method that queries the `ComponentBasedExplainabilityResult`. Parameters ---
darts/explainability/explainability_result.py:114
↓ 1 callersMethod_validate_input_for_querying_explainability_result
Helper that validates the input parameters of a method that queries the `HorizonBasedExplainabilityResult`. Parameters -----
darts/explainability/explainability_result.py:320
↓ 1 callersMethod_validate_model_params
validate that parameters used at model creation are part of the model cls __init__, its parents __init__ methods, or :class:`PLForecastingModu
darts/models/forecasting/torch_forecasting_model.py:384
↓ 1 callersMethod_validate_nf_model_params
( self, use_reversible_instance_norm: bool, )
darts/models/forecasting/nf_model.py:693
↓ 1 callersMethod_verify_enable_finetuning
Verify the `enable_finetuning` input.
darts/models/forecasting/torch_forecasting_model.py:781
↓ 1 callersMethod_verify_inference_dataset_type
Verify that the provided inference dataset is of the correct type
darts/models/forecasting/torch_forecasting_model.py:654
↓ 1 callersMethod_verify_scenario
( self, input_chunk_length: int | None = None, output_chunk_length: int | None = None,
darts/dataprocessing/encoders/encoder_base.py:196
↓ 1 callersMethod_verify_train_dataset_type
Verify that the provided train dataset is of the correct type
darts/models/forecasting/torch_forecasting_model.py:647
↓ 1 callersMethodadd
(x, y, z)
darts/tests/test_timeseries.py:1828
↓ 1 callersMethodapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch
darts/models/components/chronos2_submodels.py:215
↓ 1 callersMethodcolumn_length
Gives the number of active grid cells in a column. Parameters ---------- column A column in the window, must be w
darts/dataprocessing/dtw/window.py:57
↓ 1 callersMethodcompute
(self)
darts/tests/models/forecasting/test_torch_forecasting_model.py:147
↓ 1 callersMethoddecode
Decode patches through transformer and quantile head.
darts/models/forecasting/patchtst_fm_model.py:129
↓ 1 callersMethoddescribe_option
Describe option(s) matching the pattern.
darts/config.py:313
↓ 1 callersMethoddetect
( self, series: TimeSeriesLike, name: str = "series", )
darts/ad/detectors/detectors.py:119
↓ 1 callersMethoddtype
The dtype of the series' values.
darts/timeseries.py:1672
↓ 1 callersMethodencoders
Returns a tuple of (past covariates encoders, future covariates encoders)
darts/dataprocessing/encoders/encoders.py:1320
↓ 1 callersMethodensemble
Defines how to ensemble the individual models' predictions to produce a single prediction. Parameters ---------- pre
darts/models/forecasting/ensemble_model.py:480
↓ 1 callersMethodfit
Fits the likelihood to the model.
darts/utils/likelihood_models/base.py:68
↓ 1 callersMethodfit
Trains the detector on the given time series. Parameters ---------- series Time (sequence of) series to be used t
darts/ad/detectors/detectors.py:127
↓ 1 callersMethodfit
Fit the aggregators on the (sequence of) multivariate binary anomaly series. If a list of series is given, they must have the same number of
darts/ad/aggregators/aggregators.py:160
↓ 1 callersMethodfit
Fit/train the model on one or multiple series. This method wraps around :func:`fit_from_dataset()`, constructing a default training d
darts/models/forecasting/torch_forecasting_model.py:935
↓ 1 callersMethodfit
(self, series: TimeSeries, verbose: bool | None = None)
darts/models/forecasting/baselines.py:222
← previousnext →801–900 of 3,734, ranked by callers