MCPcopy Create free account

hub / github.com/Dingdong-Inc/frn-50k-baseline / functions

Functions842 in github.com/Dingdong-Inc/frn-50k-baseline

Method__init__
(self, d_hid: int, n_positions: int = 3000)
latent_demand_recovery/pypots/nn/modules/transformer/embedding.py:32
Method__init__
(self, c_in, d_model)
latent_demand_recovery/pypots/nn/modules/transformer/embedding.py:77
Method__init__
(self, c_in, d_model)
latent_demand_recovery/pypots/nn/modules/transformer/embedding.py:100
Method__init__
(self, d_model, embed_type="fixed", freq="h")
latent_demand_recovery/pypots/nn/modules/transformer/embedding.py:122
Method__init__
(self, d_model, freq="h")
latent_demand_recovery/pypots/nn/modules/transformer/embedding.py:153
Method__init__
(self, feature_num)
latent_demand_recovery/pypots/nn/modules/mrnn/layers.py:20
Method__init__
(self, n_steps, n_features, rnn_hidden_size)
latent_demand_recovery/pypots/nn/modules/mrnn/backbone.py:19
Method__init__
( self, ORT_weight, MIT_weight, loss_calc_func: Callable = calc_mae, )
latent_demand_recovery/pypots/nn/modules/saits/loss.py:16
Method__init__
( self, n_layers: int, n_steps: int, n_features: int, d_model: int,
latent_demand_recovery/pypots/nn/modules/saits/backbone.py:28
Method__init__
( self, d_in: int, d_out: int, with_pos: bool, n_max_steps: int = 1000
latent_demand_recovery/pypots/nn/modules/saits/embedding.py:37
Method__init__
This module is a decoder with Gaussian output distribution. Parameters ---------- output_size : int, the feature
latent_demand_recovery/pypots/nn/modules/gpvae/layers.py:239
Method__init__
( self, input_dim, time_length, latent_dim, encoder_sizes=(64, 64),
latent_demand_recovery/pypots/nn/modules/gpvae/backbone.py:65
Method__len__
(self)
demand_forecasting/DLinear/data_provider/data_loader.py:112
Method__len__
(self)
demand_forecasting/DLinear/data_provider/data_loader.py:224
Method__len__
Length of dataset. Returns: int: length
demand_forecasting/TFT/data/timeseries.py:1392
Method__len__
(self)
latent_demand_recovery/pypots/data/dataset/base.py:259
Method__repr__
(self)
demand_forecasting/TFT/data/timeseries.py:1886
Method__repr__
(self)
latent_demand_recovery/pypots/nn/modules/raindrop/layers.py:344
Method__setstate__
(self, state: dict)
demand_forecasting/TFT/models/optim.py:122
Method_assemble_input_for_testing
Assemble the given data into a dictionary for testing input. Notes ----- The processing functions of train/val/test stages ar
latent_demand_recovery/pypots/imputation/base.py:238
Method_assemble_input_for_testing
(self, data: list)
latent_demand_recovery/pypots/imputation/template/model.py:74
Method_assemble_input_for_training
(self, data: list)
latent_demand_recovery/pypots/imputation/template/model.py:68
Method_assemble_input_for_validating
(self, data: list)
latent_demand_recovery/pypots/imputation/informer/model.py:196
Method_assemble_input_for_validating
(self, data: list)
latent_demand_recovery/pypots/imputation/fedformer/model.py:215
Method_assemble_input_for_validating
(self, data: list)
latent_demand_recovery/pypots/imputation/brits/model.py:166
Method_assemble_input_for_validating
(self, data: list)
latent_demand_recovery/pypots/imputation/etsformer/model.py:201
Method_assemble_input_for_validating
(self, data: list)
latent_demand_recovery/pypots/imputation/imputeformer/model.py:204
Method_assemble_input_for_validating
(self, data: list)
latent_demand_recovery/pypots/imputation/autoformer/model.py:201
Method_assemble_input_for_validating
(self, data: list)
latent_demand_recovery/pypots/imputation/crossformer/model.py:208
Method_assemble_input_for_validating
(self, data: list)
latent_demand_recovery/pypots/imputation/dlinear/model.py:179
Method_assemble_input_for_validating
(self, data: list)
latent_demand_recovery/pypots/imputation/patchtst/model.py:229
Method_assemble_input_for_validating
(self, data: list)
latent_demand_recovery/pypots/imputation/template/model.py:71
Method_assemble_input_for_validating
(self, data: list)
latent_demand_recovery/pypots/imputation/timesnet/model.py:191
Method_assemble_input_for_validating
(self, data: list)
latent_demand_recovery/pypots/imputation/transformer/model.py:224
Method_assemble_input_for_validating
(self, data: list)
latent_demand_recovery/pypots/imputation/mrnn/model.py:157
Method_assemble_input_for_validating
(self, data: list)
latent_demand_recovery/pypots/imputation/saits/model.py:237
Method_assemble_input_for_validating
(self, data: list)
latent_demand_recovery/pypots/imputation/itransformer/model.py:218
Method_build_model
(self)
demand_forecasting/DLinear/exp/exp_main.py:26
Method_collate_fn
Collate function to combine items into mini-batch for dataloader. Args: batches (List[Tuple[Dict[str, torch.Tensor], tor
demand_forecasting/TFT/data/timeseries.py:1679
Method_fetch_data_from_array
Fetch data from self.X if it is given. Parameters ---------- idx : The index of the sample to be return.
latent_demand_recovery/pypots/imputation/brits/data.py:86
Method_fetch_data_from_array
Fetch data according to index. Parameters ---------- idx : The index to fetch the specified sample. Retu
latent_demand_recovery/pypots/imputation/csdi/data.py:68
Method_fetch_data_from_array
Fetch data according to index. Parameters ---------- idx : The index to fetch the specified sample. Retu
latent_demand_recovery/pypots/imputation/csdi/data.py:238
Method_fetch_data_from_array
(self, idx: int)
latent_demand_recovery/pypots/imputation/template/data.py:34
Method_fetch_data_from_array
Fetch data from self.X if it is given. Parameters ---------- idx : The index of the sample to be return.
latent_demand_recovery/pypots/imputation/mrnn/data.py:85
Method_fetch_data_from_array
Fetch data according to index. Parameters ---------- idx : The index to fetch the specified sample. Retu
latent_demand_recovery/pypots/imputation/saits/data.py:72
Method_fetch_data_from_array
Fetch data from self.X if it is given. Parameters ---------- idx : The index of the sample to be return.
latent_demand_recovery/pypots/imputation/gpvae/data.py:57
Method_fetch_data_from_array
Fetch data from self.X if it is given. Parameters ---------- idx : The index of the sample to be return.
latent_demand_recovery/pypots/data/dataset/base.py:367
Method_fetch_data_from_file
Fetch data with the lazy-loading strategy, i.e. only loading data from the file while requesting for samples. Here the opened file handle does
latent_demand_recovery/pypots/imputation/brits/data.py:136
Method_fetch_data_from_file
Fetch data with the lazy-loading strategy, i.e. only loading data from the file while requesting for samples. Here the opened file handle does
latent_demand_recovery/pypots/imputation/csdi/data.py:140
Method_fetch_data_from_file
Fetch data with the lazy-loading strategy, i.e. only loading data from the file while requesting for samples. Here the opened file handle does
latent_demand_recovery/pypots/imputation/csdi/data.py:286
Method_fetch_data_from_file
(self, idx: int)
latent_demand_recovery/pypots/imputation/template/data.py:37
Method_fetch_data_from_file
Fetch data with the lazy-loading strategy, i.e. only loading data from the file while requesting for samples. Here the opened file handle does
latent_demand_recovery/pypots/imputation/mrnn/data.py:133
Method_fetch_data_from_file
Fetch data with the lazy-loading strategy, i.e. only loading data from the file while requesting for samples. Here the opened file handle does
latent_demand_recovery/pypots/imputation/saits/data.py:128
Method_fetch_data_from_file
Fetch data with the lazy-loading strategy, i.e. only loading data from the file while requesting for samples. Here the opened file handle does
latent_demand_recovery/pypots/imputation/gpvae/data.py:102
Method_fetch_data_from_file
Fetch data with the lazy-loading strategy, i.e. only loading data from the file while requesting for samples. Here the opened file handle does
latent_demand_recovery/pypots/data/dataset/base.py:449
Method_get_closed_form_lr
(self)
latent_demand_recovery/pypots/optim/lr_scheduler/constant_lrs.py:79
Method_get_closed_form_lr
(self)
latent_demand_recovery/pypots/optim/lr_scheduler/linear_lrs.py:105
Method_get_closed_form_lr
(self)
latent_demand_recovery/pypots/optim/lr_scheduler/exponential_lrs.py:54
Method_get_closed_form_lr
(self)
latent_demand_recovery/pypots/optim/lr_scheduler/step_lrs.py:66
Method_get_closed_form_lr
(self)
latent_demand_recovery/pypots/optim/lr_scheduler/multistep_lrs.py:70
Method_get_data
(self)
demand_forecasting/DLinear/exp/exp_basic.py:25
Method_group_ids
Group ids used to identify series in dataset. See :py:meth:`~TimeSeriesDataSet._group_ids_mapping` for details.
demand_forecasting/TFT/data/timeseries.py:619
Method_group_ids_mapping
Mapping of group id names to group ids used to identify series in dataset - group ids can also be used for target normalizer.
demand_forecasting/TFT/data/timeseries.py:609
Method_train_model
( self, training_loader: DataLoader, val_loader: DataLoader = None, )
latent_demand_recovery/pypots/imputation/base.py:261
Methodadd_param_group
Add a param group to the optimizer param_groups. Parameters ---------- param_group : Specifies the parameters to
latent_demand_recovery/pypots/optim/base.py:59
Methodaggregate
r"""Aggregates messages from neighbors as :math:`\square_{j \in \mathcal{N}(i)}`. Takes in the output of message computation as first
latent_demand_recovery/pypots/nn/modules/raindrop/layers.py:322
Functionapply_func
(df_temp)
latent_demand_recovery/pypots/data/load_preprocessing.py:32
Functioncalc_binary_classification_metrics
Calculate the evaluation metrics for the binary classification task, including accuracy, precision, recall, f1 score, area under ROC curve, and ar
latent_demand_recovery/pypots/utils/metrics/classification.py:14
Functioncalc_external_cluster_validation_metrics
Computer all external cluster validation metrics available in PyPOTS and return as a dictionary. Parameters ---------- class_predictions
latent_demand_recovery/pypots/utils/metrics/clustering.py:155
Functioncalc_internal_cluster_validation_metrics
Computer all internal cluster validation metrics available in PyPOTS and return as a dictionary. Parameters ---------- X : array-like of
latent_demand_recovery/pypots/utils/metrics/clustering.py:274
Functioncalc_mbe
( predictions: Union[np.ndarray, torch.Tensor], targets: Union[np.ndarray, torch.Tensor], masks: O
latent_demand_recovery/pypots/utils/metrics/error.py:432
Functioncalc_mre
Calculate the Mean Relative Error between ``predictions`` and ``targets``. ``masks`` can be used for filtering. For values==0 in ``masks``, va
latent_demand_recovery/pypots/utils/metrics/error.py:215
Functioncalc_quantile_crps
Continuous rank probability score for distributional predictions. Parameters ---------- predictions : The prediction data to be e
latent_demand_recovery/pypots/utils/metrics/error.py:280
Functioncalc_quantile_crps_sum
Sum continuous rank probability score for distributional predictions. Parameters ---------- predictions : The prediction data to
latent_demand_recovery/pypots/utils/metrics/error.py:339
Functioncalc_reg_focal
( predictions: Union[np.ndarray, torch.Tensor], targets: Union[np.ndarray, torch.Tensor], masks: O
latent_demand_recovery/pypots/utils/metrics/error.py:397
Methodcalculate_prediction_actual_by_variable
Calculate predictions and actuals by variable averaged by ``bins`` bins spanning from ``-std`` to ``+std`` Args: x: inpu
demand_forecasting/TFT/models/base_model.py:1527
Methodcategorical_groups_mapping
Mapping of categorical variables to categorical groups
demand_forecasting/TFT/models/base_model.py:1416
Methodcategoricals
Categorical variables as used for modelling. Returns: List[str]: list of variables
demand_forecasting/TFT/data/timeseries.py:1034
Methodcategoricals
List of all categorical variables in model
demand_forecasting/TFT/models/base_model.py:1390
Functionclusters_for_plotting
Organize clustered arrays into format ready for plotting. Parameters __________ cluster_members : Output from get_cluster_me
latent_demand_recovery/pypots/utils/visual/clustering.py:42
Methodconfigure_optimizers
Configure optimizers. Uses single Ranger optimizer. Depending if learning rate is a list or a single float, implement dynamic
demand_forecasting/TFT/models/base_model.py:899
Methodcreate_log
(self, x, y, out, batch_idx, **kwargs)
demand_forecasting/TFT/models/tft/model.py:526
Methodcurrent_stage
Available inside lightning loops. :return: current trainer stage. One of ["train", "val", "test", "predict", "sanity_check"]
demand_forecasting/TFT/models/base_model.py:301
Methoddamping_factor
(self)
latent_demand_recovery/pypots/nn/modules/etsformer/layers.py:294
Methoddecode_autoregressive
Make predictions in auto-regressive manner. Supports only continuous targets. Args: decode_one (Callable): func
demand_forecasting/TFT/models/base_model.py:1868
Methoddecoded_index
Get interpretable version of index. DataFrame contains - group_id columns in original encoding - time_idx_first colu
demand_forecasting/TFT/data/timeseries.py:1328
Methoddecoder_variables
List of all decoder variables in model (excluding static variables)
demand_forecasting/TFT/models/base_model.py:1411
Methoddropout_categoricals
list of categorical variables that are unknown when making a forecast without observed history
demand_forecasting/TFT/data/timeseries.py:489
Methodencoder_variables
List of all encoder variables in model (excluding static variables)
demand_forecasting/TFT/models/base_model.py:1406
Methodepoch_end
run at epoch end for training or validation
demand_forecasting/TFT/models/tft/model.py:541
Methodextract_features
Extract features Args: x (Dict[str, torch.Tensor]): input from the dataloader embeddings (MultiEmbedding): e
demand_forecasting/TFT/models/base_model.py:1486
Methodfilter
Filter subsequences in dataset. Uses interpretable version of index :py:meth:`~decoded_index` to filter subsequences in data
demand_forecasting/TFT/data/timeseries.py:1299
Methodfit
( self, train_set: Union[dict, str], val_set: Optional[Union[dict, str]] = None,
latent_demand_recovery/pypots/base.py:511
Methodfit
Train the imputer on the given data. Parameters ---------- train_set : The dataset for model training, should be
latent_demand_recovery/pypots/imputation/base.py:68
Methodfit
Train the imputer on the given data. Parameters ---------- train_set : The dataset for model training, should be
latent_demand_recovery/pypots/imputation/base.py:390
Methodfit
( self, train_set: Union[dict, str], val_set: Optional[Union[dict, str]] = None,
latent_demand_recovery/pypots/imputation/informer/model.py:210
Methodfit
Train the imputer on the given data. Warnings -------- Median imputation class does not need to run fit(). Please run
latent_demand_recovery/pypots/imputation/median/model.py:28
Methodfit
( self, train_set: Union[dict, str], val_set: Optional[Union[dict, str]] = None,
latent_demand_recovery/pypots/imputation/fedformer/model.py:229
Methodfit
Train the imputer on the given data. Warnings -------- Mean imputation class does not need to run fit(). Please run f
latent_demand_recovery/pypots/imputation/mean/model.py:28
Methodfit
( self, train_set: Union[dict, str], val_set: Optional[Union[dict, str]] = None,
latent_demand_recovery/pypots/imputation/brits/model.py:203
← previousnext →501–600 of 842, ranked by callers