MCPcopy Create free account

hub / github.com/unit8co/darts / functions

Functions3,734 in github.com/unit8co/darts

↓ 2 callersMethod_check_fixed_params
Raises `ValueError` if `self._parallel_params` specifies a `key` in `self._fixed_params` that should be distributed, but `len
darts/dataprocessing/transformers/base_data_transformer.py:438
↓ 2 callersMethod_check_member
(self, other)
darts/utils/ts_utils.py:32
↓ 2 callersFunction_check_optimizable_historical_forecasts_global_models
Historical forecast can be optimized only if `retrain=False`.
darts/utils/historical_forecasts/utils.py:1279
↓ 2 callersMethod_check_seasonality_conditions
Checks if the conditions for custom conditional seasonalities are met. Each custom seasonality that has a `condition_name` other than
darts/models/forecasting/prophet_model.py:356
↓ 2 callersFunction_check_start
Raises an error if the start index (position) is not within the series.
darts/utils/historical_forecasts/utils.py:668
↓ 2 callersMethod_check_univariate_scorer
Checks if `anomalies` contains only univariate series when the scorer has the parameter 'is_univariate' set to True. 'is_univariate'
darts/ad/scorers/scorers.py:266
↓ 2 callersFunction_compute_central_series
Compute the central TimeSeries for a component.
darts/utils/_plotting.py:146
↓ 2 callersMethod_compute_metrics
(self, metrics)
darts/models/forecasting/pl_forecasting_module.py:464
↓ 2 callersFunction_compute_quantile_bounds
Compute the low and high quantile TimeSeries for confidence intervals. Returns ------- tuple[TimeSeries, TimeSeries] A tuple of (
darts/utils/_plotting.py:160
↓ 2 callersFunction_confusion_matrix
Computes a confusion matrix using numpy for two np.arrays `y_true` and `y_pred`. Parameters ---------- y_true The true labels.
darts/metrics/utils.py:953
↓ 2 callersFunction_create_dataset_bounds
Creates the bounds for the inference dataset based on the input series and whether it is for training or not.
darts/utils/historical_forecasts/optimized_historical_forecasts_torch.py:144
↓ 2 callersMethod_create_midas_df
Function creating the lower frequency dataframe out of a higher frequency dataframe.
darts/dataprocessing/transformers/midas.py:470
↓ 2 callersMethod_create_model
(**kwargs)
darts/models/forecasting/xgboost.py:234
↓ 2 callersMethod_create_model
(**kwargs)
darts/models/forecasting/catboost_model.py:251
↓ 2 callersMethod_create_model
(**kwargs)
darts/models/forecasting/lgbm.py:227
↓ 2 callersMethod_create_save_dirs
Create work dir and model dir
darts/models/forecasting/torch_forecasting_model.py:429
↓ 2 callersMethod_differentiate_series
Differentiate the series self.d times
darts/models/forecasting/varima.py:115
↓ 2 callersMethod_distr_from_params
(self, params)
darts/utils/likelihood_models/torch.py:498
↓ 2 callersFunction_divide_no_nan
a/b where the resulted NaN or Inf are replaced by 0.
darts/utils/losses.py:13
↓ 2 callersFunction_down_sample
(high_res: np.ndarray)
darts/dataprocessing/dtw/dtw.py:65
↓ 2 callersFunction_dtw_path
(dtw: CostMatrix)
darts/dataprocessing/dtw/dtw.py:40
↓ 2 callersMethod_encode_sequence
Sequentially encodes the index of all input target/covariates TimeSeries with the corresponding `encoder_method`.
darts/dataprocessing/encoders/encoders.py:1255
↓ 2 callersFunction_eval_metric
Computes a score/metric between anomaly scores or binary predicted anomalies against true anomalies. Parameters ---------- anomalies
darts/ad/utils.py:144
↓ 2 callersFunction_extend_time_index
Extends a `time_index` of frequency `freq` such that it now ends at time `new_end`; the fastest way to do this is actually to create a new ti
darts/utils/data/tabularization/tabularization.py:2049
↓ 2 callersFunction_extract_lagged_vals_from_windows
Helper function called by `_create_lagged_data_by_moving_window` that reshapes the `windows` formed by `strided_moving_window` from the s
darts/utils/data/tabularization/tabularization.py:1218
↓ 2 callersFunction_extract_sample_weight
Extracts sample weights values from the time intersection with the target labels.
darts/utils/data/tabularization/tabularization.py:2171
↓ 2 callersFunction_finite_rows_boundaries
Return the indices of the first rows containing finite values starting from the start and the end of the first dimension of the ndarray. Para
darts/timeseries.py:6249
↓ 2 callersMethod_fit_model
Function that fit the model. Deriving classes can override this method for adding additional parameters (e.g., adding validation data
darts/models/forecasting/sklearn_model.py:844
↓ 2 callersMethod_fit_scorers
Train the fittable scorers using model forecasts
darts/ad/anomaly_model/anomaly_model.py:341
↓ 2 callersMethod_format_samples
Subclasses can override this method to format the samples and labels before fit and predict.
darts/models/forecasting/sklearn_model.py:836
↓ 2 callersMethod_generate_dummy_dataset
(self)
darts/tests/utils/test_callbacks.py:76
↓ 2 callersFunction_generate_new_dates
Generates `n` new dates after the end of the specified series
darts/utils/timeseries_generation.py:889
↓ 2 callersMethod_generate_new_dates
Generates `n` new dates after the end of the specified series
darts/models/forecasting/forecasting_model.py:570
↓ 2 callersMethod_generate_predict_df
Returns a pandas DataFrame in the format required for Prophet.predict() with `n` dates after the end of the fitted TimeSeries
darts/models/forecasting/prophet_model.py:338
↓ 2 callersFunction_generate_train_idx
The returned index depends on the following cases: case 1 (steps_ahead_start >= 0 and steps_ahead_end is None or <= 1) the comple
darts/dataprocessing/encoders/encoder_base.py:916
↓ 2 callersMethod_get_categorical_features
Returns the indices and column names of the categorical features in the regression model. Steps: 1. Get the list of features
darts/models/forecasting/sklearn_model.py:1797
↓ 2 callersFunction_get_checkpoint_fname
(work_dir, model_name, best=False)
darts/models/forecasting/torch_forecasting_model.py:115
↓ 2 callersMethod_get_file_path
Get the path to a file either from a local directory or by downloading it from HuggingFace. Parameters ---------- filename
darts/models/components/huggingface_connector.py:143
↓ 2 callersMethod_get_first_timestamp_after
(self, ts: pd.Timestamp)
darts/timeseries.py:5271
↓ 2 callersFunction_get_freqs
Returns list with the frequency of all specified (i.e. non-`None`) `series`.
darts/utils/data/tabularization/tabularization.py:2071
↓ 2 callersFunction_get_historical_forecast_boundaries
Based on the boundaries of the forecastable time index, generates the boundaries of each covariates using the lags. For TimeSeries with a Ra
darts/utils/historical_forecasts/utils.py:1156
↓ 2 callersFunction_get_historical_forecasts_setup
( model, series: TimeSeries, past_covariates: TimeSeries | None, future_covariates: TimeSeries
darts/utils/historical_forecasts/utils.py:713
↓ 2 callersMethod_get_horizontal_split_index
(self)
darts/utils/model_selection.py:66
↓ 2 callersMethod_get_last_timestamp_before
(self, ts: pd.Timestamp)
darts/timeseries.py:5274
↓ 2 callersMethod_get_model_description_string
Get model description string of structure `model_name`(`model_param_key_value_pairs`). Parameters ---------- include
darts/models/forecasting/forecasting_model.py:2788
↓ 2 callersMethod_get_params
Creates generator of dictionaries containing fixed parameter values (i.e. attributes defined in the child-most class). Those fixed pa
darts/dataprocessing/transformers/base_data_transformer.py:408
↓ 2 callersFunction_get_start_index
Finds a valid historical forecast start point within either `series` or `historical_forecasts_time_index` (depending on whether `historical_foreca
darts/utils/historical_forecasts/utils.py:561
↓ 2 callersMethod_get_target_residuals
Computes the OLS residuals for predicting the target series from `future_covariates`.
darts/models/forecasting/sf_model.py:381
↓ 2 callersFunction_get_values
Returns a deterministic or probabilistic numpy array from the values of a time series of shape (times, components, samples / quantiles).
darts/metrics/utils.py:505
↓ 2 callersFunction_historical_forecasts_check_kwargs
Return the kwargs dict without the arguments unsupported by the model method. Raise a warning if some argument are not supported and an exce
darts/utils/historical_forecasts/utils.py:538
↓ 2 callersMethod_init_model
Initializes model and trainer based on examples of input/output tensors (to get the sizes right):
darts/models/forecasting/torch_forecasting_model.py:449
↓ 2 callersMethod_is_already_downloaded
(self)
darts/datasets/dataset_loaders.py:189
↓ 2 callersFunction_is_method
Check if the specified function is a method. Parameters ---------- func the function to inspect. Returns ------- boo
darts/utils/utils.py:240
↓ 2 callersMethod_make_multiple_predictions
( self, n: int, series: TimeSeriesLike | None = None, past_covariates: TimeSer
darts/models/forecasting/ensemble_model.py:368
↓ 2 callersMethod_memory_indexer
Returns dict with feature names and (start, end) index ranges. The features are (past target, future target, past cov, future past cov, histo
darts/utils/data/torch_datasets/dataset.py:46
↓ 2 callersMethod_observed_freq_integer_index
Return all observed/inferred frequencies of a ``pandas.Index`` (an integer-valued index). The inferred frequencies are given by all unique di
darts/timeseries.py:5115
↓ 2 callersFunction_pack_series_in_list
Packs each provided input into a list (or str in case of sample weight).
darts/utils/historical_forecasts/utils.py:1509
↓ 2 callersMethod_params_average
Average across the components after grouping by likelihood parameter, rename components
darts/models/forecasting/naive_ensemble_model.py:164
↓ 2 callersMethod_params_from_output
Returns the distribution parameters, obtained from the raw model outputs (e.g. applies softplus or sigmoids to get parameters in the
darts/utils/likelihood_models/torch.py:184
↓ 2 callersMethod_params_from_output
(self, model_output)
darts/utils/likelihood_models/torch.py:411
↓ 2 callersMethod_params_from_output
(self, model_output)
darts/utils/likelihood_models/torch.py:660
↓ 2 callersMethod_predictions_reduction
Reduce the sample dimension of the forecasting models predictions
darts/models/forecasting/ensemble_model.py:520
↓ 2 callersMethod_prepare_boundaries
Process the boundaries argument and perform some sanity checks Parameters ---------- lower_bound_name Na
darts/ad/detectors/detectors.py:182
↓ 2 callersFunction_prepare_plot_params
Shared input validation and parameter preparation for plot() and plotly().
darts/utils/_plotting.py:27
↓ 2 callersFunction_process_historical_forecast_for_backtest
Checks that the `historical_forecasts` have the correct format based on the input `series` and `last_points_only`. If all checks have passed, it c
darts/utils/historical_forecasts/utils.py:1528
↓ 2 callersFunction_process_historical_forecast_input
( model, series: Sequence[TimeSeries], past_covariates: Sequence[TimeSeries] | None = None, fu
darts/utils/historical_forecasts/utils.py:1288
↓ 2 callersMethod_process_input_batch
(self, input_batch: TorchBatch)
darts/models/forecasting/rnn_model.py:119
↓ 2 callersMethod_process_input_batch
Processes module input batch. Converts output of a dataset into a tuple of tensors (past target + past cov + historic future cov (con
darts/models/forecasting/pl_forecasting_module.py:544
↓ 2 callersMethod_process_input_series
Checks input series and coverts series and covariates in `kwargs` to sequences.
darts/ad/anomaly_model/anomaly_model.py:350
↓ 2 callersFunction_process_predict_start_points_bounds
Processes the historical forecastable time index bounds (earliest, and latest possible prediction start points). Parameters ----------
darts/utils/historical_forecasts/utils.py:1320
↓ 2 callersFunction_process_sample_weight
(sample_weight, target_series)
darts/utils/data/utils.py:72
↓ 2 callersFunction_process_time_index
Extracts the time index, and optionally adds some time steps after the end of the index, and/or converts the index to another time zone.
darts/utils/timeseries_generation.py:906
↓ 2 callersMethod_process_validation_set
Validates the validation set and generates/adds the required encodings.
darts/models/forecasting/forecasting_model.py:2511
↓ 2 callersMethod_produce_predict_output
overwrite parent classes `_produce_predict_output` method
darts/models/forecasting/rnn_model.py:138
↓ 2 callersMethod_produce_predict_output
(self, x: tuple)
darts/models/forecasting/pl_forecasting_module.py:747
↓ 2 callersFunction_raise_if_wrong_type
(obj, exp_type, msg="expected type {}, got: {}")
darts/models/forecasting/torch_forecasting_model.py:2827
↓ 2 callersFunction_revin
Reversible instance normalization.
darts/models/components/timesfm2p5_submodels.py:489
↓ 2 callersMethod_sanity_check_predict_likelihood_parameters
Verify that the assumptions for likelihood parameters prediction are verified: - Probabilistic models fitted with a likelihood - `num_
darts/models/forecasting/forecasting_model.py:2866
↓ 2 callersFunction_sanity_check_two_series
Performs sanity check on the two given inputs Checks if the two inputs: - type is Darts Timeseries - have the same number of comp
darts/ad/utils.py:536
↓ 2 callersMethod_setup_for_fit_from_dataset
This method acts on `TimeSeries` inputs. It performs sanity checks, and sets up / returns the datasets and additional inputs required for trai
darts/models/forecasting/torch_forecasting_model.py:1071
↓ 2 callersMethod_setup_for_train
This method acts on `TorchTrainingDataset` inputs. It performs sanity checks, and sets up / returns the trainer, model, and dataset loaders re
darts/models/forecasting/torch_forecasting_model.py:1271
↓ 2 callersMethod_setup_trainer
Sets up a PyTorch-Lightning trainer (if not already provided) for training or prediction.
darts/models/forecasting/torch_forecasting_model.py:549
↓ 2 callersFunction_slice_intersect_series
Computes the slice intersection of all series sequences. Raises an error if the intersection is empty for any of the sequences.
darts/utils/historical_forecasts/utils.py:1467
↓ 2 callersMethod_split_at
( self, split_point: pd.Timestamp | float | int, after: bool = True )
darts/timeseries.py:2482
↓ 2 callersMethod_store_add_seasonality_call
Checks the validity of an add_seasonality() call and stores valid calls. As the actual model is only created at fitting time, and seasonalitie
darts/models/forecasting/prophet_model.py:533
↓ 2 callersMethod_target_average
Average across the components, keep n_samples, rename components
darts/models/forecasting/naive_ensemble_model.py:136
↓ 2 callersMethod_train_val_step
performs a training or validation step
darts/models/forecasting/pl_forecasting_module.py:274
↓ 2 callersMethod_transform_static_covs
Transforms the static covariates of a `series` if `method = 'transform'`, and inverse transforms the static covariates of a `series`
darts/dataprocessing/transformers/static_covariates_transformer.py:394
↓ 2 callersMethod_update_covariates_use
Based on the Forecasting class and the training_sample attribute, update the uses_[past/future/static]_covariates attributes.
darts/models/forecasting/torch_forecasting_model.py:843
↓ 2 callersMethod_validate_lags
( self, lags: LAGS_TYPE | None, lags_past_covariates: LAGS_TYPE | None, lags_f
darts/models/forecasting/sklearn_model.py:308
↓ 2 callersMethod_validate_nf_model_class
(self, name: str = "model")
darts/models/forecasting/nf_model.py:684
↓ 2 callersMethod_verify_dtypes
Dataset output dtype checks. Checks that all dataset output arrays have the same dtype, and whether the dtype matches the one of the
darts/models/forecasting/torch_forecasting_model.py:809
↓ 2 callersMethod_verify_lags
Check the base requirements for `min_covariates_lag` and `max_covariates_lag`: - both must either be None or an integer - min_covariat
darts/dataprocessing/encoders/encoder_base.py:233
↓ 2 callersMethod_verify_passed_predict_covariates
Simple check if user supplied/did not supply covariates as done at fitting time.
darts/models/forecasting/forecasting_model.py:3411
↓ 2 callersMethod_verify_past_future_covariates
Verify that any non-None covariates comply with the model type.
darts/models/forecasting/torch_forecasting_model.py:749
↓ 2 callersMethod_verify_past_future_covariates
Verify that any non-None covariates comply with the model type.
darts/models/forecasting/ensemble_model.py:846
↓ 2 callersMethod_verify_series
Some sanity checks on the input, the high_freq and low_freq arguments are mutually exclusive
darts/dataprocessing/transformers/midas.py:409
↓ 2 callersMethodadd_range
Extends the active cells in the column by the range (start,end). Ranges smaller than the current one are ignored. Note (1, m+1), not (
darts/dataprocessing/dtw/window.py:182
↓ 2 callersFunctionautoregressive_timeseries
Creates a univariate, autoregressive TimeSeries whose values are calculated using specified coefficients `coef` and starting values `start_va
darts/utils/timeseries_generation.py:364
↓ 2 callersMethodbacktest
r"""Compute error values that the model produced for historical forecasts on (potentially multiple) `series`. If `historical_forecasts` are p
darts/models/forecasting/forecasting_model.py:1249
← previousnext →501–600 of 3,734, ranked by callers