Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GestaltCogTeam/BasicTS
/ functions
Functions
713 in github.com/GestaltCogTeam/BasicTS
⨍
Functions
713
◇
Types & classes
201
↳
Endpoints
1
Method
_get_cosine_with_hard_restarts_schedule_with_warmup_lr_lambda
( current_step: int, *, num_warmup_steps: int, num_training_steps: int, num_cycles: int )
src/basicts/runners/optim/lr_schedulers.py:86
Method
_missing_
(cls, value)
src/basicts/utils/constants.py:11
Method
_mix_levels
(self, low_freq: torch.Tensor, high_freq: torch.Tensor,
src/basicts/models/TimeKAN/arch/timekan_layers.py:151
Method
_zeropower_via_newtonschulz5
r""" Newton-Schulz iteration to compute the zeroth power / orthogonalization of G. We opt to use a quintic iteration whose coefficient
src/basicts/runners/optim/optimizers.py:84
Method
_zeropower_via_svd
(self, G)
src/basicts/runners/optim/optimizers.py:80
Function
accuracy
Calculate the accuracy of predictions. Args: prediction (torch.Tensor): The predicted values as a tensor. targets (torch.Ten
src/basicts/metrics/cls_metrics.py:4
Method
auto_attention
Perform auto-attention mechanism on the input. Args: inp (torch.Tensor): Input data of shape [B, N, T], where B is the b
src/basicts/models/Leddam/arch/leddam_layers.py:82
Function
check_nan_inf
Check for NaN or Inf values in a tensor. Args: tensor (torch.Tensor): Input tensor to check. raise_ex (bool, optional): Whet
src/basicts/utils/misc.py:33
Function
clock
Decorator to measure the execution time of a function. This decorator prints the time taken for a function to execute.
src/basicts/utils/misc.py:18
Function
clocked
(*args, **kwargs)
src/basicts/utils/misc.py:25
Function
convert_iteration_save_strategy_to_epoch_save_strategy
(ckpt_save_strategy: Union[int, List, Tuple], val_interval: int)
src/basicts/utils/misc.py:71
Method
data
(self)
src/basicts/data/tsi_dataset.py:97
Method
data
(self)
src/basicts/data/base_dataset.py:33
Method
data
(self)
src/basicts/data/blast.py:258
Method
data
(self)
src/basicts/data/uea_dataset.py:103
Method
data
(self)
src/basicts/data/tsf_dataset.py:104
Function
dump_pkl
Save an object to a pickle file. Args: obj (object): Object to save. file_path (str): Path to the file.
src/basicts/utils/serialization.py:66
Method
fit
Fit the scaler to the training data. Args: data (torch.Tensor): Training data used to fit the scaler.
src/basicts/scaler/z_score_scaler.py:40
Method
fit
Fit the scaler to the training data. Args: data (torch.Tensor): Training data used to fit the scaler.
src/basicts/scaler/min_max_scaler.py:34
Method
forward
Forward pass of the moving average block. Args: inputs (torch.Tensor): Input tensor of shape [batch_size, seq_len, num_f
src/basicts/modules/decomposition.py:24
Method
forward
Forward pass of the moving average decomposition block. Args: inputs (torch.Tensor): Input tensor of shape [batch_size,
src/basicts/modules/decomposition.py:49
Method
forward
Forward pass of the series decomposition block. Args: inputs (torch.Tensor): Input tensor of shape [batch_size, seq_len,
src/basicts/modules/decomposition.py:74
Method
forward
Forward pass of the DFT decomposition layer. Args: inputs (torch.Tensor): Input tensor of shape [batch_size, seq_len, nu
src/basicts/modules/decomposition.py:104
Method
forward
Forward pass of the MLP layer. Args: inputs (torch.Tensor): Input tensor of shape [..., input_size] Returns:
src/basicts/modules/mlps.py:35
Method
forward
Forward pass of the MLP layer. Args: inputs (torch.Tensor): Input tensor of shape [..., input_size] Returns:
src/basicts/modules/mlps.py:72
Method
forward
Position embedding. Args: x (torch.Tensor): Input tensor of shape [batch_size, seq_len, hidden_size]. Returns:
src/basicts/modules/embed/tst_embed.py:30
Method
forward
(self, x: torch.Tensor)
src/basicts/modules/embed/tst_embed.py:58
Method
forward
Forward pass of the TimestampEmbedding layer. Args: timestamps (torch.Tensor): Input tensor of timestamps of shape [batc
src/basicts/modules/embed/tst_embed.py:80
Method
forward
Forward pass of the FeatureEmbedding layer. Args: inputs (torch.Tensor): Input tensor of shape [batch_size, seq_len, num
src/basicts/modules/embed/tst_embed.py:127
Method
forward
Forward pass of the SequenceEmbedding layer. Args: inputs (torch.Tensor): Input tensor of shape [batch_size, seq_len, nu
src/basicts/modules/embed/tst_embed.py:160
Method
forward
Forward pass of the PatchEmbedding layer. Args: x (torch.Tensor): Input tensor of shape [batch_size, seq_len, num_featur
src/basicts/modules/embed/tst_embed.py:207
Method
forward
:param x: input tensor of shape [batch_size, seq_len, num_features] :param mode: 'norm' for normalization, 'denorm' for denormalizati
src/basicts/modules/norm/revin.py:36
Method
forward
(self, x: torch.Tensor)
src/basicts/modules/norm/layer_norm.py:14
Method
forward
Forward pass of STNorm. Args: inputs (Tensor): Input data with shape: [batch_size, input_len, num_features]
src/basicts/modules/norm/stnorm.py:82
Method
forward
(self, hidden_states: torch.Tensor)
src/basicts/modules/norm/rmsnorm.py:16
Method
forward
Forward pass of the decoder layer. Args: hidden_states (torch.Tensor): The input hidden states.
src/basicts/modules/transformer/decoder.py:108
Method
forward
Forward pass of the auto-regressive decoder. Args: hidden_states (torch.Tensor): The input hidden states
src/basicts/modules/transformer/decoder.py:181
Method
forward
Forward pass of the Seq2SeqDecoderLayer. Args: hidden_states (torch.Tensor): The input hidden states.
src/basicts/modules/transformer/decoder.py:361
Method
forward
Forward pass of the Seq2SeqDecoderLayer. Args: hidden_states (torch.Tensor): The input hidden states.
src/basicts/modules/transformer/decoder.py:551
Method
forward
Forward pass of the Seq2SeqDecoder. Args: hidden_states (torch.Tensor): The input hidden states.
src/basicts/modules/transformer/decoder.py:647
Method
forward
Forward pass of the Seq2SeqDecoder. Args: hidden_states (torch.Tensor): The input hidden states.
src/basicts/modules/transformer/decoder.py:722
Method
forward
Apply and cache RoPE. Args: q (torch.Tensor): The query tensor with shape [batch_size, n_heads, seq_len, head_size].
src/basicts/modules/transformer/rope.py:73
Method
forward
Feed-forward of BasicTS Transformer encoder layer. Args: hidden_states (torch.Tensor): Input hidden states.
src/basicts/modules/transformer/encoder.py:114
Method
forward
Feed-forward of BasicTS Transformer encoder. Args: hidden_states (torch.Tensor): Input hidden states. attent
src/basicts/modules/transformer/encoder.py:165
Method
forward
( self, hidden_states: torch.Tensor, key_value_states: Optional[torch.Tensor] = None,
src/basicts/modules/transformer/attentions/multi_head_attention.py:56
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
src/basicts/modules/transformer/attentions/prob_attention.py:97
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor
src/basicts/modules/transformer/attentions/auto_correlation.py:61
Method
forward
Forward pass of TimeXer. Args: inputs (torch.Tensor): Input tensor of shape [batch_size, input_len, num_features].
src/basicts/models/TimeXer/arch/timexer_arch.py:67
Method
forward
(self, x: torch.Tensor)
src/basicts/models/TimeXer/arch/layers.py:19
Method
forward
( self, hidden_states: torch.Tensor, key_value_states: torch.Tensor = None, ou
src/basicts/models/TimeXer/arch/layers.py:34
Method
forward
Feed forward of DLinear. Args: inputs (torch.Tensor): inputs data with shape [batch_size, input_len, num_features] Retur
src/basicts/models/DLinear/arch/dlinear_arch.py:37
Method
forward
(self, x)
src/basicts/models/Koopa/arch/layers.py:16
Method
forward
(self, x)
src/basicts/models/Koopa/arch/layers.py:60
Method
forward
(self, z, pred_len=1)
src/basicts/models/Koopa/arch/layers.py:95
Method
forward
(self, z, pred_len=1)
src/basicts/models/Koopa/arch/layers.py:117
Method
forward
(self, x)
src/basicts/models/Koopa/arch/layers.py:184
Method
forward
(self, x)
src/basicts/models/Koopa/arch/layers.py:230
Method
forward
Single-`inputs` forward to match runner API. Args: inputs (torch.Tensor): history input with shape [B, L, C] or [B, L, C
src/basicts/models/Koopa/arch/koopa_arch.py:65
Method
forward
Feed forward of STID. Args: inputs (torch.Tensor): history data with shape [batch_size, input_len, num_features] inpu
src/basicts/models/STID/arch/stid_arch.py:58
Method
forward
Forward pass of the Leddam model. Args: inputs (torch.Tensor): Input tensor of shape [batch_size, input_len, num_feature
src/basicts/models/Leddam/arch/leddam_arch.py:74
Method
forward
(self, x: torch.Tensor)
src/basicts/models/Leddam/arch/leddam_layers.py:47
Method
forward
Forward pass of the Auto-Attention module. Args: P (int): The period for autoregressive behavior. inp (torch
src/basicts/models/Leddam/arch/leddam_layers.py:108
Method
forward
Forward pass of the TimesNetBackbone. Args: inputs (torch.Tensor): Input tensor of shape [batch_size, input_len, num
src/basicts/models/TimesNet/arch/timesnet_arch.py:33
Method
forward
Forward pass of the TimesNetForForecasting. Args: inputs (torch.Tensor): Input tensor of shape [batch_size, input_le
src/basicts/models/TimesNet/arch/timesnet_arch.py:71
Method
forward
(self, x: torch.Tensor)
src/basicts/models/TimesNet/arch/conv_block.py:31
Method
forward
(self, x: torch.Tensor)
src/basicts/models/TimesNet/arch/conv_block.py:67
Method
forward
(self, hidden_states: torch.Tensor)
src/basicts/models/TimesNet/arch/times_block.py:42
Method
forward
Forward pass of the Crossformer model. Args: inputs (torch.Tensor): Input tensor of shape [batch_size, input_len, num_fe
src/basicts/models/Crossformer/arch/crossformer_arch.py:90
Method
forward
Args: x (torch.Tensor): Input tensor of shape [batch_size * num_features, num_patches, hidden_size] Returns:
src/basicts/models/Crossformer/arch/crossformer_layers.py:23
Method
forward
Crossformer Encoder Layer Args: hidden_states (torch.Tensor): Input tensor of shape [batch_size * num_features, num_patc
src/basicts/models/Crossformer/arch/crossformer_layers.py:80
Method
forward
(self, hidden_states: torch.Tensor)
src/basicts/models/Crossformer/arch/crossformer_layers.py:132
Method
forward
Args: hidden_states (torch.Tensor): Input tensor of shape [batch_size * num_features, num_patches, hidden_size] key_v
src/basicts/models/Crossformer/arch/crossformer_layers.py:171
Method
forward
( self, hidden_states: torch.Tensor, kv_list: Optional[Iterable[torch.Tens
src/basicts/models/Crossformer/arch/crossformer_layers.py:211
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
src/basicts/models/Autoformer/arch/layers.py:28
Method
forward
( self, hidden_states: torch.Tensor, key_value_states: torch.Tensor, past_key_
src/basicts/models/Autoformer/arch/layers.py:87
Method
forward
( self, hidden_states: torch.Tensor, key_value_states: torch.Tensor,
src/basicts/models/Autoformer/arch/layers.py:171
Method
forward
Feed forward of Autoformer. Args: inputs: Input data with shape: [batch_size, input_len, num_features] targe
src/basicts/models/Autoformer/arch/autoformer_arch.py:83
Method
forward
(self, inputs: torch.Tensor)
src/basicts/models/SparseTSF/arch/sparsetsf_arch.py:36
Method
forward
(self, x: torch.Tensor)
src/basicts/models/StemGNN/arch/stemgnn_arch.py:18
Method
forward
( self, x: torch.Tensor, graph: torch.Tensor )
src/basicts/models/StemGNN/arch/stemgnn_arch.py:90
Method
forward
Feedforward function of StemGNN. Args: inputs (Tensor): Input data with shape: [batch_size, input_len, num_features] Ret
src/basicts/models/StemGNN/arch/stemgnn_arch.py:219
Method
forward
(self, inputs: torch.Tensor, inputs_timestamps: Optional[torch.Tensor] = None,
src/basicts/models/TimeMixer/arch/timemixer_arch.py:91
Method
forward
(self, inputs: torch.Tensor, inputs_timestamps: Optional[torch.Tensor] = None
src/basicts/models/TimeMixer/arch/timemixer_arch.py:179
Method
forward
(self, seasonal_list: list[torch.Tensor])
src/basicts/models/TimeMixer/arch/mixing_layers.py:30
Method
forward
(self, trend_list: list[torch.Tensor])
src/basicts/models/TimeMixer/arch/mixing_layers.py:67
Method
forward
(self, x_list: list[torch.Tensor])
src/basicts/models/TimeMixer/arch/mixing_layers.py:115
Method
forward
Args: inputs (Tensor): Input data with shape: [batch_size, input_len, num_features] Returns: torch.Tensor:
src/basicts/models/PatchTST/arch/patchtst_arch.py:62
Method
forward
Forward pass of PatchTSTForForecasting. Args: inputs (Tensor): Input data with shape: [batch_size, input_len, num_featur
src/basicts/models/PatchTST/arch/patchtst_arch.py:110
Method
forward
Forward pass of PatchTSTForForecasting. Args: inputs (Tensor): Input data with shape: [batch_size, input_len, num_featur
src/basicts/models/PatchTST/arch/patchtst_arch.py:163
Method
forward
Forward pass of PatchTSTForReconstruction. Args: inputs (Tensor): Input data with shape: [batch_size, input_len, num_fea
src/basicts/models/PatchTST/arch/patchtst_arch.py:208
Method
forward
(self, x: torch.Tensor)
src/basicts/models/PatchTST/arch/patchtst_layers.py:15
Method
forward
(self, x: torch.Tensor)
src/basicts/models/PatchTST/arch/patchtst_layers.py:46
Method
forward
(self, x: torch.Tensor)
src/basicts/models/LightTS/arch/lightts_arch.py:33
Method
forward
Forward pass of LightTS. Args: inputs (torch.Tensor): Input tensor with shape [batch_size, input_len, num_features].
src/basicts/models/LightTS/arch/lightts_arch.py:83
Method
forward
Forward pass of FITS. Args: inputs (torch.Tensor): Input tensor of shape [batch_size, input_len, num_features].
src/basicts/models/FITS/arch/fits_arch.py:60
Method
forward
inputs : (length, ...) output : (length, ..., N) where N is the order of the HiPPO projection
src/basicts/models/FiLM/arch/film_arch.py:48
Method
forward
(self, x: torch.Tensor)
src/basicts/models/FiLM/arch/film_arch.py:94
Method
forward
Feed forward of FiLM. Args: inputs (torch.Tensor): inputs data with shape [batch_size, input_len, num_features] Returns:
src/basicts/models/FiLM/arch/film_arch.py:140
Method
forward
Forward pass of Timer model. Args: inputs (torch.Tensor): Input tensor of shape [batch_size, input_len, num_features].
src/basicts/models/Timer/arch/timer_arch.py:61
Method
forward
(self, x: torch.Tensor)
src/basicts/models/MTSMixer/arch/mtsmixer_layers.py:36
← previous
next →
501–600 of 713, ranked by callers