MCPcopy Create free account

hub / github.com/ant-intl/Falcon-TST / functions

Functions74 in github.com/ant-intl/Falcon-TST

↓ 12 callersMethod__init__
(self,config, in_features)
falcon1/models/modeling_falcon_tst.py:260
↓ 3 callersMethod_array_to_list
(array: np.ndarray)
falcon2/src/falcontst/client.py:134
↓ 3 callersMethod_array_to_list
(array: np.ndarray)
falconx/src/falcontst/client.py:134
↓ 2 callersFunction_apply_rotary_pos_emb_bshd
Apply rotary positional embedding to input tensor T. check https://kexue.fm/archives/8265 for detailed formulas Args: t (Tensor): Inpu
falcon1/models/modeling_falcon_tst.py:36
↓ 2 callersMethod_build_predict_payload
( self, context: np.ndarray, prediction_length: int, model_name: Optional[str]
falcon2/src/falcontst/client.py:89
↓ 2 callersMethod_build_predict_payload
( self, context: np.ndarray, prediction_length: int, model_name: Optional[str]
falconx/src/falcontst/client.py:89
↓ 2 callersMethod_inference_step
( self, input, input_mask, rotary_pos_emb, )
falcon1/models/modeling_falcon_tst.py:800
↓ 2 callersMethod_post
(self, endpoint: str, payload: Any)
falcon2/src/falcontst/client.py:120
↓ 2 callersMethod_post
(self, endpoint: str, payload: Any)
falconx/src/falcontst/client.py:120
↓ 1 callersFunctionMAE
Calculate Mean Absolute Error between predictions and ground truth. MAE measures the average magnitude of errors in predictions, without
falcon1/eval/metrics.py:11
↓ 1 callersFunctionMSE
Calculate Mean Squared Error between predictions and ground truth. MSE measures the average of the squares of the errors. It gives highe
falcon1/eval/metrics.py:29
↓ 1 callersMethod_auto_regressive_single_head
auto regressive prediction with [single] head
falcon1/models/modeling_falcon_tst.py:835
↓ 1 callersMethod_format_response
(data: Any)
falcon2/src/falcontst/client.py:148
↓ 1 callersMethod_format_response
(data: Any)
falconx/src/falcontst/client.py:148
↓ 1 callersMethod_forward_output
Perform a forward pass through the output layer. Args: hidden_states (Tensor): Transformed hidden states of s
falcon1/models/modeling_falcon_tst.py:367
↓ 1 callersMethod_forward_patch_embedding
Perform patch embedding on the input time series. This method applies a linear transformation to the input tensor to convert
falcon1/models/modeling_falcon_tst.py:333
↓ 1 callersMethod_replace_nan
(value: Any)
falcon2/src/falcontst/client.py:140
↓ 1 callersMethod_replace_nan
(value: Any)
falconx/src/falcontst/client.py:140
↓ 1 callersFunction_rotate_half
Change sign so the last dimension becomes [-odd, +even] Args: x (Tensor): Input tensor Returns: Tensor: Tensor rotated half
falcon1/models/modeling_falcon_tst.py:19
↓ 1 callersMethodbatch_eval
Perform batch evaluation on a single dataset. This method processes batches of time series data through the model, c
falcon1/eval/evaluation.py:36
↓ 1 callersMethodcombine
Combines expert outputs via communication and adds shared expert output. This method uses the time series(sample) dispatcher to combine the ou
falcon1/models/modeling_falcon_tst.py:585
↓ 1 callersMethodexperts_compute
Computes the output of the experts on the dispatched time series(sample). This method first post-processes the dispatched input to get permute
falcon1/models/modeling_falcon_tst.py:559
↓ 1 callersMethodget_freqs_non_repeated
Generates matrix of frequencies based on positions in the sequence, used to create positional encodings
falcon1/models/modeling_falcon_tst.py:103
↓ 1 callersFunctionmetric
Calculate both MAE and MSE metrics for time series forecasting evaluation. This is a convenience function that computes both primary eva
falcon1/eval/metrics.py:46
↓ 1 callersMethodpostprocess
Args: backcast (torch.Tensor): The previous layer's backcast time series (samples). [batch_size, seq_len]
falcon1/models/modeling_falcon_tst.py:617
↓ 1 callersMethodpredict
Generates time series forecasts autoregressively. Args: time_series (torch.Tensor): Input time series data.
falcon1/models/modeling_falcon_tst.py:897
↓ 1 callersMethodreset_parameters
(self)
falcon1/models/modeling_falcon_tst.py:453
↓ 1 callersMethodrevin
Normalization from Non-stationary Transformer
falcon1/models/modeling_falcon_tst.py:727
↓ 1 callersMethodrouter_and_preprocess
Compute and preprocess time series(sample) routing for dispatch. This method uses the router to determine which experts to send each time seri
falcon1/models/modeling_falcon_tst.py:542
↓ 1 callersMethodrouting
(self, logits: torch.Tensor)
falcon1/models/modeling_falcon_tst.py:456
↓ 1 callersMethodswiglu
Performs SwiGLU (Swish-Gated Linear Unit) activation function. Args: y (torch.Tensor): Input tensor to be split into two halves al
falcon1/models/modeling_falcon_tst.py:271
↓ 1 callersMethodtest
Run comprehensive evaluation across multiple benchmark datasets. This method orchestrates the complete evaluation pipeline:
falcon1/eval/evaluation.py:87
↓ 1 callersMethodtime_series_preprocess
Preprocess time series(sample) for dispatch. Applies RevIN to input time series(sample), and process the input mask (0: mask,
falcon1/models/modeling_falcon_tst.py:519
Method__getitem__
Get a single sample from the dataset. Args: idx (int): Index of the sample to retrieve Returns: dic
falcon1/datasets/benchmark_dataset.py:147
Method__init__
( self, endpoint: str = DEFAULT_PREDICT_URL, batch_endpoint: str = DEFAULT_BATCH_PREDI
falcon2/src/falcontst/client.py:27
Method__init__
( self, endpoint: str = DEFAULT_PREDICT_URL, batch_endpoint: str = DEFAULT_BATCH_PREDI
falconx/src/falcontst/client.py:27
Method__init__
Initialize the evaluation class with configuration parameters.
falcon1/eval/evaluation.py:32
Method__init__
Initialize the BenchmarkEvalDataset. Args: csv_path (str): Path to the CSV file containing time series data
falcon1/datasets/benchmark_dataset.py:42
Method__init__
( self, kv_channels: int, rotary_interleaved: bool = False, rotary_base: int =
falcon1/models/modeling_falcon_tst.py:84
Method__init__
(self, hidden_size, eps=1e-5)
falcon1/models/modeling_falcon_tst.py:166
Method__init__
(self, causal=False, softmax_scale=None, attention_dropout=0.0)
falcon1/models/modeling_falcon_tst.py:193
Method__init__
(self,config,)
falcon1/models/modeling_falcon_tst.py:228
Method__init__
(self, config, input_layernorm)
falcon1/models/modeling_falcon_tst.py:283
Method__init__
(self, config, patch_input_size=32,expert_output_size=336,final_layernorm=True)
falcon1/models/modeling_falcon_tst.py:312
Method__init__
(self, config,expert_output_size=336)
falcon1/models/modeling_falcon_tst.py:406
Method__init__
(self, config: FalconTSTConfig)
falcon1/models/modeling_falcon_tst.py:443
Method__init__
(self, config, layer_number)
falcon1/models/modeling_falcon_tst.py:488
Method__init__
(self, config, input_layernorm = True)
falcon1/models/modeling_falcon_tst.py:655
Method__init__
(self, config: FalconTSTConfig)
falcon1/models/modeling_falcon_tst.py:705
Method__init__
(self, config: FalconTSTConfig)
falcon1/models/modeling_falcon_tst.py:890
Method__init__
Initialize FalconTST configuration.
falcon1/models/configuration_falcon_tst.py:103
Method__iter__
Make the dataset iterable.
falcon1/datasets/benchmark_dataset.py:142
Method__len__
Return the total number of samples in the dataset.
falcon1/datasets/benchmark_dataset.py:138
Method_init_weights
(self, module)
falcon1/models/modeling_falcon_tst.py:693
Method_load_from_state_dict
(self, state_dict, prefix, *args, **kwargs)
falcon1/models/modeling_falcon_tst.py:142
Methodbatch_predict
Batch quantile forecast inference.
falcon2/src/falcontst/client.py:62
Methodbatch_predict
Batch quantile forecast inference.
falconx/src/falcontst/client.py:62
Methodforward
Forward pass of RoPE embedding. Args: max_seq_len (int): Maximum size of sequence offset (int, optional): RoPE offset.
falcon1/models/modeling_falcon_tst.py:114
Methodforward
(self, x)
falcon1/models/modeling_falcon_tst.py:161
Methodforward
hidden_states [bs, patch_num, d_model]
falcon1/models/modeling_falcon_tst.py:171
Methodforward
Implements the multihead softmax attention. Arguments --------- q,k,v: The tensor containing the query, key, and value. [
falcon1/models/modeling_falcon_tst.py:199
Methodforward
x: [seq_len, batch_size, hidden_size] attention_mask: [batch_size, 1, seq_len, seq_len] rotary_pos_emb: [seq_len,
falcon1/models/modeling_falcon_tst.py:236
Methodforward
(self, x)
falcon1/models/modeling_falcon_tst.py:266
Methodforward
x: [seq_len, batch_size, hidden_size] attention_mask: [batch_size, 1, seq_len, seq_len] rotary_pos_emb: [seq_len,
falcon1/models/modeling_falcon_tst.py:294
Methodforward
(self, expert_input, rotary_pos_emb, expert_probs=None)
falcon1/models/modeling_falcon_tst.py:390
Methodforward
(self, input, routing_map, rotary_pos_emb, expert_probs)
falcon1/models/modeling_falcon_tst.py:420
Methodforward
(self, input: torch.Tensor)
falcon1/models/modeling_falcon_tst.py:474
Methodforward
(self, backcast, forecast, rotary_pos_emb)
falcon1/models/modeling_falcon_tst.py:646
Methodforward
(self, x, rotary_pos_emb)
falcon1/models/modeling_falcon_tst.py:669
Methodforward
(self, input, revin)
falcon1/models/modeling_falcon_tst.py:752
Methodget_rotary_seq_len
Function to get the rotary sequence length. Args: transformer_input (Tensor): Input tensor to the transformer Returns:
falcon1/models/modeling_falcon_tst.py:146
Methodinverse_transform
Apply inverse transformation to denormalize predictions. This method reverses the StandardScaler normalization applied during
falcon1/datasets/benchmark_dataset.py:173
Methodquantile_predict
Quantile forecast inference.
falcon2/src/falcontst/client.py:41
Methodquantile_predict
Quantile forecast inference.
falconx/src/falcontst/client.py:41