Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Dingdong-Inc/frn-50k-baseline
/ functions
Functions
842 in github.com/Dingdong-Inc/frn-50k-baseline
⨍
Functions
842
◇
Types & classes
203
↓ 1 callers
Function
adjust_learning_rate
(optimizer, epoch, args)
demand_forecasting/DLinear/utils/tools.py:8
↓ 1 callers
Function
cal_metrics
(df, data_type, groups=["psd>=0"])
demand_forecasting/TFT/predictTFT.py:67
↓ 1 callers
Method
cal_metrics
(self, df, target_dates, groups=["psd>=0"])
demand_forecasting/DLinear/exp/exp_main.py:379
↓ 1 callers
Function
calc_acc
Calculate accuracy score of model predictions. Parameters ---------- class_predictions : Estimated classification predictions ret
latent_demand_recovery/pypots/utils/metrics/classification.py:238
↓ 1 callers
Function
calc_adjusted_rand_index
Calculate adjusted Rand Index. Parameters ---------- class_predictions : Clustering results returned by a clusterer. targets
latent_demand_recovery/pypots/utils/metrics/clustering.py:63
↓ 1 callers
Function
calc_chs
Compute the Calinski and Harabasz score (also known as the Variance Ratio Criterion). X : array-like of shape (n_samples_a, n_features) A
latent_demand_recovery/pypots/utils/metrics/clustering.py:220
↓ 1 callers
Function
calc_cluster_purity
Calculate cluster purity. Parameters ---------- class_predictions : Clustering results returned by a clusterer. targets :
latent_demand_recovery/pypots/utils/metrics/clustering.py:124
↓ 1 callers
Function
calc_dbs
Compute the Davies-Bouldin score. Parameters ---------- X : array-like of shape (n_samples_a, n_features) A feature array, or lea
latent_demand_recovery/pypots/utils/metrics/clustering.py:245
↓ 1 callers
Method
calc_loss_valid
( self, observed_data, cond_mask, indicating_mask, side_info, is_train )
latent_demand_recovery/pypots/nn/modules/csdi/backbone.py:86
↓ 1 callers
Function
calc_mae
Calculate the Mean Absolute 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:61
↓ 1 callers
Function
calc_nmi
Calculate Normalized Mutual Information between two clusterings. Parameters ---------- class_predictions : Clustering results ret
latent_demand_recovery/pypots/utils/metrics/clustering.py:99
↓ 1 callers
Function
calc_pr_auc
Calculate precisions, recalls, and area under PR curve of model predictions. Parameters ---------- prob_predictions : Estimated p
latent_demand_recovery/pypots/utils/metrics/classification.py:157
↓ 1 callers
Function
calc_precision_recall_f1
Calculate precision, recall, and F1-score of model predictions. Parameters ---------- prob_predictions : Estimated probability pr
latent_demand_recovery/pypots/utils/metrics/classification.py:120
↓ 1 callers
Function
calc_rand_index
Calculate Rand Index, a measure of the similarity between two data clusterings. Refer to :cite:`rand1971RandIndex`. Parameters ----------
latent_demand_recovery/pypots/utils/metrics/clustering.py:12
↓ 1 callers
Function
calc_roc_auc
Calculate false positive rates, true positive rates, and area under AUC curve of model predictions. Parameters ---------- prob_prediction
latent_demand_recovery/pypots/utils/metrics/classification.py:198
↓ 1 callers
Function
calc_silhouette
Compute the mean Silhouette Coefficient of all samples. Parameters ---------- X : array-like of shape (n_samples_a, n_features) A
latent_demand_recovery/pypots/utils/metrics/clustering.py:189
↓ 1 callers
Function
cauchy_kernel
(T, sigma, length_scale)
latent_demand_recovery/pypots/nn/modules/gpvae/layers.py:49
↓ 1 callers
Method
compl_mul1d
(self, order, x, weights)
latent_demand_recovery/pypots/nn/modules/fedformer/layers.py:278
↓ 1 callers
Method
compl_mul1d
(self, input, weights)
latent_demand_recovery/pypots/nn/modules/fedformer/layers.py:768
↓ 1 callers
Method
data_organization
(self, pred_data_path, target_dates)
demand_forecasting/DLinear/exp/exp_main.py:344
↓ 1 callers
Function
data_provider
(args, flag)
demand_forecasting/DLinear/data_provider/data_factory.py:5
↓ 1 callers
Method
decode
(self, z: torch.Tensor)
latent_demand_recovery/pypots/nn/modules/vader/backbone.py:120
↓ 1 callers
Method
deduce_default_output_parameters
Deduce default parameters for output for `from_dataset()` method. Determines ``output_size`` and ``loss`` parameters. Args:
demand_forecasting/TFT/models/base_model.py:353
↓ 1 callers
Function
demand_recovery
(CONFIG)
latent_demand_recovery/exp/app.py:81
↓ 1 callers
Function
diffusion_kernel
(T, length_scale)
latent_demand_recovery/pypots/nn/modules/gpvae/layers.py:24
↓ 1 callers
Method
encode
( self, X: torch.Tensor, missing_mask: torch.Tensor, )
latent_demand_recovery/pypots/nn/modules/vader/backbone.py:92
↓ 1 callers
Function
evaluation_decoupling
(data)
latent_demand_recovery/exp/app.py:111
↓ 1 callers
Function
evaluation_mnar
(X, imputation)
latent_demand_recovery/exp/app.py:90
↓ 1 callers
Method
evenOdd
(self, x)
latent_demand_recovery/pypots/nn/modules/fedformer/layers.py:385
↓ 1 callers
Method
evenOdd
(self, x)
latent_demand_recovery/pypots/nn/modules/fedformer/layers.py:709
↓ 1 callers
Method
extrapolate
(self, x_freq, f, t)
latent_demand_recovery/pypots/nn/modules/etsformer/layers.py:168
↓ 1 callers
Method
fill_na
(self, df)
demand_forecasting/TFT/dataset/dataset.py:21
↓ 1 callers
Method
forward
(self, inputs: dict, training: bool = True)
latent_demand_recovery/pypots/imputation/informer/core.py:71
↓ 1 callers
Method
forward
(self, inputs: dict, training: bool = True)
latent_demand_recovery/pypots/imputation/fedformer/core.py:60
↓ 1 callers
Method
forward
(self, inputs: dict, training: bool = True)
latent_demand_recovery/pypots/imputation/brits/core.py:60
↓ 1 callers
Method
forward
(self, inputs: dict, training: bool = True)
latent_demand_recovery/pypots/imputation/etsformer/core.py:79
↓ 1 callers
Method
forward
(self, inputs: dict, training: bool = True)
latent_demand_recovery/pypots/imputation/imputeformer/core.py:87
↓ 1 callers
Method
forward
(self, inputs: dict, training: bool = True)
latent_demand_recovery/pypots/imputation/autoformer/core.py:71
↓ 1 callers
Method
forward
(self, inputs: dict, training: bool = True)
latent_demand_recovery/pypots/imputation/crossformer/core.py:81
↓ 1 callers
Method
forward
(self, inputs: dict, training: bool = True)
latent_demand_recovery/pypots/imputation/dlinear/core.py:47
↓ 1 callers
Method
forward
(self, inputs: dict, training: bool = True)
latent_demand_recovery/pypots/imputation/patchtst/core.py:49
↓ 1 callers
Method
forward
(self, inputs: dict, training: bool = True)
latent_demand_recovery/pypots/imputation/timesnet/core.py:54
↓ 1 callers
Method
forward
(self, inputs: dict, training: bool = True)
latent_demand_recovery/pypots/imputation/transformer/core.py:62
↓ 1 callers
Method
forward
(self, inputs: dict, training: bool = True)
latent_demand_recovery/pypots/imputation/mrnn/core.py:22
↓ 1 callers
Method
forward
( self, inputs: dict, diagonal_attention_mask: bool = True, training: bool = T
latent_demand_recovery/pypots/imputation/saits/core.py:64
↓ 1 callers
Method
forward
(self, inputs: dict, training: bool = True)
latent_demand_recovery/pypots/imputation/itransformer/core.py:56
↓ 1 callers
Method
forward_feature
(self, y, base_shape)
latent_demand_recovery/pypots/nn/modules/csdi/layers.py:84
↓ 1 callers
Method
forward_time
(self, y, base_shape)
latent_demand_recovery/pypots/nn/modules/csdi/layers.py:75
↓ 1 callers
Method
from_dataset
Generate dataset with different underlying data but same variable encoders and scalers, etc. Calls :py:meth:`~from_parameters` under
demand_forecasting/TFT/data/timeseries.py:1137
↓ 1 callers
Method
gen_dataloader
(self)
demand_forecasting/TFT/dataset/dataset.py:107
↓ 1 callers
Method
gen_dataset
(self)
demand_forecasting/TFT/dataset/dataset.py:61
↓ 1 callers
Method
gen_model
(self)
demand_forecasting/TFT/trainer/model.py:29
↓ 1 callers
Method
gen_predict_df
(self, df)
demand_forecasting/TFT/dataset/dataset.py:47
↓ 1 callers
Method
gen_target_dates
(self)
demand_forecasting/TFT/trainer/model.py:21
↓ 1 callers
Method
gen_train_df
(self, df)
demand_forecasting/TFT/dataset/dataset.py:42
↓ 1 callers
Method
gen_trainer
(self)
demand_forecasting/TFT/trainer/model.py:53
↓ 1 callers
Function
gene_complete_random_walk
Generate complete random walk time-series data, i.e. having no missing values. Parameters ---------- n_samples : int, default=1000
latent_demand_recovery/pypots/data/generating.py:20
↓ 1 callers
Function
gene_complete_random_walk_for_classification
Generate complete random walk time-series data for the classification task. Parameters ---------- n_classes : int, must >=1, default=2
latent_demand_recovery/pypots/data/generating.py:65
↓ 1 callers
Method
gene_hidden_states
(self, inputs, feature_idx)
latent_demand_recovery/pypots/nn/modules/mrnn/backbone.py:31
↓ 1 callers
Method
get_attention_mask
Returns causal mask to apply for self-attention layer.
demand_forecasting/TFT/models/tft/model.py:368
↓ 1 callers
Method
get_exponential_weight
(self, T)
latent_demand_recovery/pypots/nn/modules/etsformer/layers.py:77
↓ 1 callers
Method
get_lr
Compute learning rate.
latent_demand_recovery/pypots/optim/lr_scheduler/base.py:100
↓ 1 callers
Function
get_metrics
(df_pred, groups=["psd>=0"])
demand_forecasting/TFT/predictTFT.py:129
↓ 1 callers
Function
get_phi_psi
(k, base)
latent_demand_recovery/pypots/nn/modules/fedformer/layers.py:36
↓ 1 callers
Function
get_pred
(dataset, df_eval, data_type, start_epoch=0, verbose=False)
demand_forecasting/TFT/predictTFT.py:111
↓ 1 callers
Function
get_sorted_files
(directory='.')
demand_forecasting/TFT/predictTFT.py:103
↓ 1 callers
Method
impute
Impute missing values in the given data with the trained model. Warnings -------- The method impute is deprecated. Please use
latent_demand_recovery/pypots/imputation/gpvae/model.py:459
↓ 1 callers
Method
init_weights
(self)
latent_demand_recovery/pypots/nn/modules/raindrop/backbone.py:128
↓ 1 callers
Method
inverse_transform
(self, data)
demand_forecasting/DLinear/data_provider/data_loader.py:227
↓ 1 callers
Method
jitter
(self, x)
latent_demand_recovery/pypots/nn/modules/etsformer/layers.py:26
↓ 1 callers
Method
kl_divergence
(a, b)
latent_demand_recovery/pypots/nn/modules/gpvae/backbone.py:109
↓ 1 callers
Function
legendreDer
(k, x)
latent_demand_recovery/pypots/nn/modules/fedformer/layers.py:21
↓ 1 callers
Function
loadDataset
(data_type='censored', data_path=None)
demand_forecasting/TFT/predictTFT.py:23
↓ 1 callers
Function
load_data
(CONFIG)
latent_demand_recovery/exp/data/generate_data.py:50
↓ 1 callers
Function
load_model
(CONFIG)
latent_demand_recovery/exp/model/models.py:11
↓ 1 callers
Function
load_set
(handle, datadict)
latent_demand_recovery/pypots/data/saving/h5.py:115
↓ 1 callers
Function
load_specific_dataset
Load specific datasets supported by PyPOTS. Different from tsdb.load_dataset(), which only produces merely raw data, load_specific_dataset her
latent_demand_recovery/pypots/data/load_specific_datasets.py:37
↓ 1 callers
Function
locf_numpy
Numpy implementation of LOCF. Parameters ---------- X : np.ndarray, Time series containing missing values (NaN) to be imputed.
latent_demand_recovery/pypots/imputation/locf/core.py:12
↓ 1 callers
Function
locf_torch
Torch implementation of LOCF. Parameters ---------- X : tensor, Time series containing missing values (NaN) to be imputed. f
latent_demand_recovery/pypots/imputation/locf/core.py:88
↓ 1 callers
Method
log_embeddings
Log embeddings to tensorboard
demand_forecasting/TFT/models/tft/model.py:853
↓ 1 callers
Method
log_gradient_flow
log distribution of gradients to identify exploding / vanishing gradients
demand_forecasting/TFT/models/base_model.py:869
↓ 1 callers
Method
log_interpretation
Log interpretation metrics to tensorboard.
demand_forecasting/TFT/models/tft/model.py:795
↓ 1 callers
Method
log_metrics
Log metrics every training/validation step. Args: x (Dict[str, torch.Tensor]): x as passed to the network by the dataloa
demand_forecasting/TFT/models/base_model.py:580
↓ 1 callers
Method
log_prediction
Log metrics every training/validation step. Args: x (Dict[str, torch.Tensor]): x as passed to the network by the dataloa
demand_forecasting/TFT/models/base_model.py:696
↓ 1 callers
Function
make_cnn
This function used to construct neural network consisting of one 1d-convolutional layer that utilizes temporal dependencies, fully conne
latent_demand_recovery/pypots/nn/modules/gpvae/layers.py:114
↓ 1 callers
Function
make_nn
This function used to creates fully connected neural network. Parameters ---------- input_size : int, the dimension of input embe
latent_demand_recovery/pypots/nn/modules/gpvae/layers.py:62
↓ 1 callers
Function
matern_kernel
(T, length_scale)
latent_demand_recovery/pypots/nn/modules/gpvae/layers.py:37
↓ 1 callers
Function
mimic_missing
(patch_ts, p=0.5, max_missing_patch=7, min_missing_patch=3)
latent_demand_recovery/exp/data/generate_data.py:6
↓ 1 callers
Function
nonstationary_denorm
De-Normalization from Non-stationary Transformer. Please refer to :cite:`liu2022nonstationary` for more details. Parameters ---------- X
latent_demand_recovery/pypots/nn/functional/normalization.py:64
↓ 1 callers
Function
nonstationary_norm
Normalization from Non-stationary Transformer. Please refer to :cite:`liu2022nonstationary` for more details. Parameters ---------- X : t
latent_demand_recovery/pypots/nn/functional/normalization.py:14
↓ 1 callers
Method
output_to_prediction
Convert network output to rescaled and normalized prediction. Function is typically not called directly but via :py:meth:`~decode_au
demand_forecasting/TFT/models/base_model.py:1809
↓ 1 callers
Method
plot_interpretation
Make figures that interpret model. * Attention * Variable selection weights / importances Args: interpr
demand_forecasting/TFT/models/tft/model.py:745
↓ 1 callers
Method
predict
Make predictions for the input data with the trained model. Parameters ---------- test_set : The dataset for mode
latent_demand_recovery/pypots/base.py:371
↓ 1 callers
Method
predict
Make predictions for the input data with the trained model. Parameters ---------- test_set : dict or str The data
latent_demand_recovery/pypots/imputation/informer/model.py:248
↓ 1 callers
Method
predict
Make predictions for the input data with the trained model. Parameters ---------- test_set : dict or str The data
latent_demand_recovery/pypots/imputation/median/model.py:47
↓ 1 callers
Method
predict
Make predictions for the input data with the trained model. Parameters ---------- test_set : dict or str The data
latent_demand_recovery/pypots/imputation/fedformer/model.py:267
↓ 1 callers
Method
predict
Make predictions for the input data with the trained model. Parameters ---------- test_set : dict or str The data
latent_demand_recovery/pypots/imputation/mean/model.py:47
↓ 1 callers
Method
predict
( self, test_set: Union[dict, str], file_type: str = "hdf5", )
latent_demand_recovery/pypots/imputation/brits/model.py:241
↓ 1 callers
Method
predict
Make predictions for the input data with the trained model. Parameters ---------- test_set : dict or str The data
latent_demand_recovery/pypots/imputation/etsformer/model.py:253
↓ 1 callers
Method
predict
Parameters ---------- test_set : dict or str The dataset for model validating, should be a dictionary including
latent_demand_recovery/pypots/imputation/csdi/model.py:380
← previous
next →
201–300 of 842, ranked by callers