MCPcopy Create free account

hub / github.com/FinancialComputingUCL/LOBFrame / functions

Functions104 in github.com/FinancialComputingUCL/LOBFrame

↓ 7 callersMethodmax_norm_
(self, w)
models/TABL/bin_tabl.py:79
↓ 6 callersMethodexit_long
(self, price, datetime=None)
simulator/trading_agent.py:25
↓ 6 callersMethodexit_short
(self, price, datetime=None)
simulator/trading_agent.py:33
↓ 6 callersMethodlong
(self, price, datetime=None)
simulator/trading_agent.py:13
↓ 6 callersMethodshort
(self, price, datetime=None)
simulator/trading_agent.py:19
↓ 5 callersMethodmax_norm_
(self, w)
models/TABL/bin_tabl.py:37
↓ 3 callersFunctioncalculate_log_returns
(series, step=50)
loggers/analysis.py:24
↓ 3 callersFunctionexecute_pipeline
(file_patterns, general_hyperparameters)
data_processing/complete_homological_utils.py:230
↓ 3 callersFunctionget_training_test_stocks_as_string
(general_hyperparameters)
utils.py:673
↓ 3 callersFunctionload_yaml
Load a YAML file. Args: path (str): Path to the YAML file. subsection (str): Subsection to be considered (i.e. general, mode
utils.py:14
↓ 3 callersFunctionoptimized_rolling_diff
(series, window_size)
loggers/analysis.py:27
↓ 2 callersFunction__get_fees_free_pnl__
(trading_simulation)
simulator/post_trading_analysis.py:16
↓ 2 callersFunction__get_pnl_with_fees__
(trading_simulation, trading_hyperparameters)
simulator/post_trading_analysis.py:32
↓ 2 callersFunctiondetect_changing_points
Detect the last index of the file containing the target value. Args: target (int): Target index. cumulative_lengths (list): L
utils.py:343
↓ 2 callersMethodlogger_clean_up
(self)
optimizers/executor.py:179
↓ 1 callersFunction__get_data__
(experiment_id)
simulator/market_sim.py:10
↓ 1 callersFunction__get_long_short_indices__
(trading_simulation)
simulator/post_trading_analysis.py:48
↓ 1 callersMethod__init__
( self, experiment_id, model, train_loader, val_loader, test_l
optimizers/lightning_batch_gd.py:235
↓ 1 callersMethod__init__
(self, d2, d1, t1, t2, d3, t3)
models/TABL/bin_tabl.py:10
↓ 1 callersMethod__init__
(self, W=40, H=100, c_in=32, c_out=32, c_final=4, n_heads=4, pool_kernel=(1, 4), pool_stride=(1, 4))
models/AxialLob/axiallob.py:105
↓ 1 callersMethod__init__
( self, lighten, dropout: float = 0.1, activation: str = "relu", norm_
models/Transformer/transformer.py:55
↓ 1 callersMethod__set_logs_path
(self)
data_processing/data_process_utils.py:42
↓ 1 callersMethod__set_processed_data_path_scaled_data
(self)
data_processing/data_process_utils.py:35
↓ 1 callersMethod__set_processed_data_path_unscaled_data
(self)
data_processing/data_process_utils.py:28
↓ 1 callersMethod__set_raw_data_path
(self)
data_processing/data_process_utils.py:23
↓ 1 callersFunction_conv1d1x1
(in_channels, out_channels)
models/AxialLob/axiallob.py:7
↓ 1 callersMethod_init_weight
Identical to the XLM create_sinusoidal_embeddings except features are not interleaved. The cos features are in the 2nd half of the ve
models/Transformer/transformer.py:20
↓ 1 callersMethodcache_dataset
(self, dataset_index)
loaders/custom_dataset.py:251
↓ 1 callersFunctioncompute_pairwise_mi
Compute the pairwise mutual information between the columns of a dataframe. Parameters ---------- df : pandas.Dataframe The
data_processing/complete_homological_utils.py:21
↓ 1 callersFunctioncreate_hyperparameters_yaml
Create and save a YAML file containing the hyperparameters as part of an experiment. Args: experiment_id (str): ID of the experiment.
utils.py:591
↓ 1 callersFunctioncreate_tree
Create folders recursively. Args: path (str): Tree of folders to be created. Returns: None.
utils.py:658
↓ 1 callersFunctiondata_split
Split the data into training, validation and test sets based on the training, validation and test ratios. Args: dataset (str): The c
utils.py:30
↓ 1 callersMethoddelete_run
(self)
optimizers/lightning_batch_gd.py:262
↓ 1 callersMethodexecute_testing
(self)
optimizers/executor.py:176
↓ 1 callersMethodexecute_training
(self)
optimizers/executor.py:173
↓ 1 callersFunctionextract_components
Given the cliques, separators and adjacency matrix of a TMFG, extract the b-cliques of size 2 (edges), 3 (triangles) and 4 (tetrahedra). Par
data_processing/complete_homological_utils.py:156
↓ 1 callersMethodforward
(self, x)
models/Transformer/transformer.py:93
↓ 1 callersMethodgenerate_data_folders
(self)
data_processing/data_process_utils.py:48
↓ 1 callersFunctionget_best_levels_prices_and_labels
Get the best levels (bid and ask) prices and the corresponding discretized labels. Args: dataset (str): Name of the dataset to be use
utils.py:281
↓ 1 callersFunctionget_complete_homology
Compute the homological structures to be used in the HCNN building process. Parameters ---------- general_hyperparameters : Dict[str
data_processing/complete_homological_utils.py:267
↓ 1 callersFunctionget_datetime_from_seconds
(seconds_after_midnight, date_str)
data_processing/data_process.py:449
↓ 1 callersFunctionmean_tmfg
Compute the average similarity matrix for a list of similarity matrices. Parameters ---------- sm_list : List[pandas.DataFrame]
data_processing/complete_homological_utils.py:122
↓ 1 callersFunctionparse_args
Parser for input arguments. Returns: The parsed arguments.
utils.py:397
↓ 1 callersMethodprocess_data
(self)
data_processing/data_process_utils.py:67
↓ 1 callersFunctionprocess_file
(f)
loggers/analysis.py:30
↓ 1 callersFunctionprocess_stock
(s)
loggers/analysis.py:78
↓ 1 callersMethodreset_parameters
(self)
models/AxialLob/axiallob.py:100
↓ 1 callersFunctionsave_dataset_info
Save all the days used in the training, validation and test sets. Args: experiment_id (str): ID of the experiment. general_hy
utils.py:221
↓ 1 callersMethodtest
(self)
optimizers/lightning_batch_gd.py:347
↓ 1 callersMethodtrain
(self)
optimizers/lightning_batch_gd.py:280
↓ 1 callersFunctionwandb_hyperparameters_saving
Save the general/model hyperparameters in the Weights & Biases dashboard. Args: wandb_logger (any): Wandb logger. general_hyp
utils.py:364
Method__getitem__
(self, index)
loaders/custom_dataset.py:266
Method__init__
(self, experiment_id, general_hyperparameters, model_hyperparameters, torch_dataset_preparation=False, torch_d
optimizers/executor.py:22
Method__init__
( self, model, experiment_id, learning_rate, general_hyperparameters,
optimizers/lightning_batch_gd.py:21
Method__init__
( self, dataset, learning_stage, window_size, shuffling_seed,
loaders/custom_dataset.py:16
Method__init__
(self, d2, d1, t1, t2, d3, t3, d4, t4)
models/TABL/bin_tabl.py:46
Method__init__
(self, d2, d1, t1, t2)
models/TABL/bl_layer.py:7
Method__init__
(self, d2, d1, t1, t2)
models/TABL/bin_nn.py:7
Method__init__
(self, d2, d1, t1, t2)
models/TABL/tabl_layer.py:7
Method__init__
(self, lighten, num_snapshots=100, hidden_size=128)
models/DLA/DLA.py:7
Method__init__
(self, lighten)
models/LobTransformer/lobtransformer.py:7
Method__init__
(self, in_channels, out_channels, heads, dim, flag)
models/AxialLob/axiallob.py:13
Method__init__
(self, num_features=40, num_classes=3, temp=26)
models/CNN1/cnn1.py:6
Method__init__
(self, lighten, homological_structures)
models/CompleteHCNN/complete_hcnn.py:7
Method__init__
( self, num_positions: int, embedding_dim: int, padding_idx: Optional[int] = None )
models/Transformer/transformer.py:13
Method__init__
(self, num_features=40, num_classes=3, temp=249)
models/CNN2/cnn2.py:9
Method__init__
( self, lighten, dropout: float = 0.1, activation: str = "relu", norm_
models/iTransformer/itransformer.py:7
Method__init__
(self, lighten)
models/DeepLob/deeplob.py:7
Method__init__
(self, ticker, dataset, experiment_id, horizons, normalization_window)
data_processing/data_process_utils.py:7
Method__init__
(self, trading_hyperparameters)
simulator/trading_agent.py:2
Method__len__
(self)
loaders/custom_dataset.py:247
Functionbacktest
(experiment_id, trading_hyperparameters)
simulator/market_sim.py:17
Methodconfigure_optimizers
(self)
optimizers/lightning_batch_gd.py:104
Functionfind_save_path
Find the directory path for saving results associated with a given `model_id`. This function constructs a directory path within the 'loggers/
loggers/logger.py:31
Functionfind_substrings_in_string
(string_list, main_string)
loggers/analysis.py:21
Methodforward
(self, x)
optimizers/lightning_batch_gd.py:56
Methodforward
(self, x)
models/TABL/bin_tabl.py:18
Methodforward
(self, x)
models/TABL/bin_tabl.py:55
Methodforward
(self, x)
models/TABL/bl_layer.py:23
Methodforward
(self, x)
models/TABL/bin_nn.py:38
Methodforward
(self, X)
models/TABL/tabl_layer.py:33
Methodforward
(self, x)
models/DLA/DLA.py:30
Methodforward
(self, x)
models/LobTransformer/lobtransformer.py:105
Methodforward
(self, x)
models/AxialLob/axiallob.py:48
Methodforward
(self, x)
models/AxialLob/axiallob.py:134
Methodforward
(self, x)
models/CNN1/cnn1.py:38
Methodforward
(self, x)
models/CompleteHCNN/complete_hcnn.py:109
Methodforward
`input_ids_shape` is expected to be [bsz x seqlen].
models/Transformer/transformer.py:40
Methodforward
(self, x)
models/CNN2/cnn2.py:44
Methodforward
(self, x)
models/iTransformer/itransformer.py:42
Methodforward
(self, x)
models/DeepLob/deeplob.py:100
Functiongenerate_id
Generate a unique experiment identifier based on the input `name` and the current timestamp in the format "YYYY-MM-DD_HH_MM_SS". Create a dir
loggers/logger.py:10
Functionlogger
Log experimental results in a YAML file associated with the given `model_id`. If the file already exists, it appends new data to it; otherwis
loggers/logger.py:44
Methodon_test_end
(self)
optimizers/lightning_batch_gd.py:209
Methodon_validation_epoch_end
(self)
optimizers/lightning_batch_gd.py:113
Functionpost_trading_analysis
(experiment_id, general_hyperparameters, trading_hyperparameters, model_hyperparameters)
simulator/post_trading_analysis.py:60
Functionprocess_data
Function to pre-process LOBSTER data. The data must be stored in the input_path directory as 'daily message LOB' and 'orderbook' files. The
data_processing/data_process.py:11
Functionprocess_file
Compute the TMFG for volumes of a given orderbook file. Parameters ---------- file : str The path to the file to compute the
data_processing/complete_homological_utils.py:72
Functionprocess_stock_files
(file_list)
loggers/analysis.py:65
Functionread_log
Read and retrieve data from a log file associated with the given `model_id`. :param model_id: Model identifier, (str). :param header: He
loggers/logger.py:68
next →1–100 of 104, ranked by callers