MCPcopy Create free account

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

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

Methodforward
(self, x)
latent_demand_recovery/pypots/nn/modules/timesnet/layers.py:70
Methodforward
(self, X)
latent_demand_recovery/pypots/nn/modules/timesnet/backbone.py:39
Methodforward
Forward processing of the position-wise feed forward network. Parameters ---------- x: Input tensor. Ret
latent_demand_recovery/pypots/nn/modules/transformer/layers.py:40
Methodforward
Forward processing of the encoder layer. Parameters ---------- enc_input: Input tensor. src_mask:
latent_demand_recovery/pypots/nn/modules/transformer/layers.py:112
Methodforward
Forward processing of the decoder layer. Parameters ---------- dec_input: Input tensor. enc_output:
latent_demand_recovery/pypots/nn/modules/transformer/layers.py:203
Methodforward
Forward processing of the encoder. Parameters ---------- x: Input tensor. src_mask: Masking
latent_demand_recovery/pypots/nn/modules/transformer/auto_encoder.py:78
Methodforward
Forward processing of the decoder. Parameters ---------- trg_seq: Input tensor. enc_output:
latent_demand_recovery/pypots/nn/modules/transformer/auto_encoder.py:183
Methodforward
( self, q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, attn_mask:
latent_demand_recovery/pypots/nn/modules/transformer/attention.py:31
Methodforward
Forward processing of the scaled dot-product attention. Parameters ---------- q: Query tensor. k:
latent_demand_recovery/pypots/nn/modules/transformer/attention.py:63
Methodforward
Forward processing of the multi-head attention module. Parameters ---------- q: Query tensor. k:
latent_demand_recovery/pypots/nn/modules/transformer/attention.py:172
Methodforward
Forward processing of the positional encoding module. Parameters ---------- x: Input tensor. return_only
latent_demand_recovery/pypots/nn/modules/transformer/embedding.py:47
Methodforward
(self, x)
latent_demand_recovery/pypots/nn/modules/transformer/embedding.py:94
Methodforward
(self, x)
latent_demand_recovery/pypots/nn/modules/transformer/embedding.py:117
Methodforward
(self, x)
latent_demand_recovery/pypots/nn/modules/transformer/embedding.py:139
Methodforward
(self, x)
latent_demand_recovery/pypots/nn/modules/transformer/embedding.py:160
Methodforward
(self, x, x_timestamp=None)
latent_demand_recovery/pypots/nn/modules/transformer/embedding.py:188
Methodforward
(self, x, missing_mask, target)
latent_demand_recovery/pypots/nn/modules/mrnn/layers.py:39
Methodforward
(self, inputs: dict)
latent_demand_recovery/pypots/nn/modules/mrnn/backbone.py:59
Methodforward
(self, reconstruction, X_ori, missing_mask, indicating_mask, norm_val)
latent_demand_recovery/pypots/nn/modules/saits/loss.py:27
Methodforward
( self, X, missing_mask, attn_mask: Optional = None )
latent_demand_recovery/pypots/nn/modules/saits/backbone.py:87
Methodforward
(self, X, missing_mask=None)
latent_demand_recovery/pypots/nn/modules/saits/embedding.py:55
Methodforward
(self, x)
latent_demand_recovery/pypots/nn/modules/gpvae/layers.py:100
Methodforward
(self, x)
latent_demand_recovery/pypots/nn/modules/gpvae/layers.py:181
Methodforward
(self, x)
latent_demand_recovery/pypots/nn/modules/gpvae/layers.py:253
Methodforward
(self, X, missing_mask)
latent_demand_recovery/pypots/nn/modules/gpvae/backbone.py:166
Methodfrom_dataset
Create model from dataset and set parameters related to covariates. Args: dataset: timeseries dataset allowe
demand_forecasting/TFT/models/base_model.py:1424
Methodfrom_dataset
Create model from dataset. Args: dataset: timeseries dataset **kwargs: additional arguments such as hyperpar
demand_forecasting/TFT/models/base_model.py:1783
Methodfrom_dataset
Create model from dataset. Args: dataset: timeseries dataset allowed_encoder_known_variable_names: List of k
demand_forecasting/TFT/models/tft/model.py:334
Functiongene_complete_random_walk_for_anomaly_detection
Generate random walk time-series data for the anomaly-detection task. Parameters ---------- n_samples : int, default=1000 The num
latent_demand_recovery/pypots/data/generating.py:138
Functiongene_physionet2012
Generate a fully-prepared PhysioNet-2012 dataset for model testing. Parameters ---------- artificially_missing_rate : float, default=0.1
latent_demand_recovery/pypots/data/generating.py:324
Functiongene_random_walk
Generate a random-walk data. Parameters ---------- n_steps : int, default=24 Number of time steps in each sample. n_features
latent_demand_recovery/pypots/data/generating.py:229
Functionget_cluster_means
Get time series variables' mean values and 95% confidence intervals at each time point per cluster. Parameters __________ dict_to_pl
latent_demand_recovery/pypots/utils/visual/clustering.py:136
Functionget_cluster_members
Subset time series array using predicted cluster membership. Parameters __________ test_data : Time series array that cluste
latent_demand_recovery/pypots/utils/visual/clustering.py:17
Methodget_last_lr
Return last computed learning rate by current scheduler.
latent_demand_recovery/pypots/optim/lr_scheduler/base.py:105
Methodget_lr
(self)
latent_demand_recovery/pypots/optim/lr_scheduler/constant_lrs.py:60
Methodget_lr
(self)
latent_demand_recovery/pypots/optim/lr_scheduler/lambda_lrs.py:69
Methodget_lr
(self)
latent_demand_recovery/pypots/optim/lr_scheduler/multiplicative_lrs.py:64
Methodget_lr
(self)
latent_demand_recovery/pypots/optim/lr_scheduler/linear_lrs.py:77
Methodget_lr
(self)
latent_demand_recovery/pypots/optim/lr_scheduler/exponential_lrs.py:43
Methodget_lr
(self)
latent_demand_recovery/pypots/optim/lr_scheduler/step_lrs.py:55
Methodget_lr
(self)
latent_demand_recovery/pypots/optim/lr_scheduler/multistep_lrs.py:56
Methodget_output_size
(normalizer, loss)
demand_forecasting/TFT/models/base_model.py:371
Functionget_random_seed
Get the random seed used in PyPOTS. Returns ------- random_seed : The random seed used in PyPOTS.
latent_demand_recovery/pypots/utils/random.py:31
Methodimpute
Impute missing values in the given data with the trained model. Parameters ---------- X : The data samples for te
latent_demand_recovery/pypots/imputation/base.py:109
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/base.py:431
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/informer/model.py:308
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/median/model.py:115
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/fedformer/model.py:327
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/mean/model.py:114
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/brits/model.py:272
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/etsformer/model.py:313
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/csdi/model.py:444
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/imputeformer/model.py:285
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/autoformer/model.py:313
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/crossformer/model.py:320
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/dlinear/model.py:291
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/patchtst/model.py:341
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/usgan/model.py:442
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/locf/model.py:128
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/timesnet/model.py:303
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/transformer/model.py:311
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/mrnn/model.py:261
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/saits/model.py:386
Methodimpute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/itransformer/model.py:306
Methodimpute
(self, X, missing_mask, n_sampling_times=1)
latent_demand_recovery/pypots/nn/modules/gpvae/backbone.py:155
Methodinit_optimizer
Initialize the torch optimizer wrapped by this class. Parameters ---------- params : An iterable of ``torch.Tenso
latent_demand_recovery/pypots/optim/adadelta.py:52
Methodinit_optimizer
Initialize the torch optimizer wrapped by this class. Parameters ---------- params : An iterable of ``torch.Tenso
latent_demand_recovery/pypots/optim/radam.py:56
Methodinit_optimizer
Initialize the torch optimizer wrapped by this class. Parameters ---------- params : An iterable of ``torch.Tenso
latent_demand_recovery/pypots/optim/base.py:49
Methodinit_optimizer
Initialize the torch optimizer wrapped by this class. Parameters ---------- params : An iterable of ``torch.Tenso
latent_demand_recovery/pypots/optim/adamw.py:57
Methodinit_optimizer
Initialize the torch optimizer wrapped by this class. Parameters ---------- params : An iterable of ``torch.Tenso
latent_demand_recovery/pypots/optim/adagrad.py:57
Methodinit_optimizer
Initialize the torch optimizer wrapped by this class. Parameters ---------- params : An iterable of ``torch.Tenso
latent_demand_recovery/pypots/optim/rmsprop.py:62
Methodinit_optimizer
Initialize the torch optimizer wrapped by this class. Parameters ---------- params : An iterable of ``torch.Tenso
latent_demand_recovery/pypots/optim/adam.py:56
Methodinit_scheduler
(self, optimizer)
latent_demand_recovery/pypots/optim/lr_scheduler/lambda_lrs.py:53
Methodinit_scheduler
(self, optimizer)
latent_demand_recovery/pypots/optim/lr_scheduler/multiplicative_lrs.py:48
Methodinverse_transform
(self, data)
demand_forecasting/DLinear/data_provider/data_loader.py:115
Methodlagged_target_positions
Positions of lagged target variable(s) in covariates. Returns: Dict[int, torch.LongTensor]: dictionary mapping integer l
demand_forecasting/TFT/models/base_model.py:2073
Methodlagged_target_positions
Positions of lagged target variable(s) in covariates. Returns: Dict[int, torch.LongTensor]: dictionary mapping integer l
demand_forecasting/TFT/models/base_model.py:2118
Methodlagged_targets
Subset of `lagged_variables` but only includes variables that are lagged targets.
demand_forecasting/TFT/data/timeseries.py:525
Methodlagged_variables
Lagged variables. Returns: Dict[str, str]: dictionary of variable names corresponding to lagged variables
demand_forecasting/TFT/data/timeseries.py:510
Functionlist_supported_datasets
Return the datasets natively supported by PyPOTS so far. Returns ------- SUPPORTED_DATASETS : A list including all supported data
latent_demand_recovery/pypots/data/load_specific_datasets.py:25
Functionload_data
(path)
demand_forecasting/SSA/ssa_forecasting.py:86
Functionload_dict_from_h5
Load the data from the given h5 file and return as a Python dictionary. Notes ----- This implementation was inspired by https://github.co
latent_demand_recovery/pypots/data/saving/h5.py:90
Methodlog_interval
Log interval depending if training or validating
demand_forecasting/TFT/models/base_model.py:687
Methodmake_selection_plot
(title, values, labels)
demand_forecasting/TFT/models/tft/model.py:773
Methodmask
(self)
latent_demand_recovery/pypots/nn/modules/informer/layers.py:30
Methodmax_lag
Maximum number of time steps variables are lagged. Returns: int: maximum lag
demand_forecasting/TFT/data/timeseries.py:548
Methodmessage
( self, x_i: Tensor, x_j: Tensor, edge_weights: Tensor, edge_attr: Opt
latent_demand_recovery/pypots/nn/modules/raindrop/layers.py:247
Methodmessage_selfattention
( self, x_i: Tensor, x_j: Tensor, edge_weights: Tensor, edge_attr: Opt
latent_demand_recovery/pypots/nn/modules/raindrop/layers.py:217
Methodmin_lag
Minimum number of time steps variables are lagged. Returns: int: minimum lag
demand_forecasting/TFT/data/timeseries.py:534
Methodmulti_target
If dataset encodes one or multiple targets. Returns: bool: true if multiple targets
demand_forecasting/TFT/data/timeseries.py:1097
Methodn_targets
Number of targets to forecast. Based on loss function. Returns: int: number of targets
demand_forecasting/TFT/models/base_model.py:309
Methodon_after_backward
Log gradient flow for debugging.
demand_forecasting/TFT/models/base_model.py:888
Methodon_fit_end
(self)
demand_forecasting/TFT/models/tft/model.py:522
Methodon_load_checkpoint
(self, checkpoint: Dict[str, Any])
demand_forecasting/TFT/models/base_model.py:1031
Methodon_save_checkpoint
(self, checkpoint: Dict[str, Any])
demand_forecasting/TFT/models/base_model.py:1007
Functionparse_delta
Generate the time-gap matrix (i.e. the delta metrix) from the missing mask. Please refer to :cite:`che2018GRUD` for its math definition. Para
latent_demand_recovery/pypots/data/utils.py:136
Functionphi_
(phi_c, x, lb=0, ub=1)
latent_demand_recovery/pypots/nn/modules/fedformer/layers.py:31
Functionpickle_dump
Pickle the given object. Parameters ---------- data: The object to be pickled. path: Saving path. Returns -
latent_demand_recovery/pypots/data/saving/pickle.py:15
Functionpickle_load
Load pickled object from file. Parameters ---------- path : Local path of the pickled object. Returns ------- Object
latent_demand_recovery/pypots/data/saving/pickle.py:45
Functionplot_cluster_means
Generate line plots of cluster means and 95% confidence intervals for each time series variable. Parameters __________ cluster_means
latent_demand_recovery/pypots/utils/visual/clustering.py:218
← previousnext →701–800 of 842, ranked by callers