Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jackmzw/Price_Prediction_LOB
/ functions
Functions
19 in github.com/Jackmzw/Price_Prediction_LOB
⨍
Functions
19
◇
Types & classes
3
↓ 2 callers
Function
evaluate
(source, source_batch)
code/cnn.py:137
↓ 2 callers
Function
evaluate
(source, source_batch)
code/rnn.py:153
↓ 2 callers
Function
get_batch
Construct the input and target data of the model, with batch.
code/cnn.py:95
↓ 2 callers
Function
get_batch
Construct the input and target data of the model, with batch.
code/rnn.py:106
↓ 2 callers
Method
init_hidden
(self, bsz)
code/models.py:42
↓ 2 callers
Function
repackage_hidden
Wraps hidden states in new Variables, to detach them from their history.
code/rnn.py:99
↓ 1 callers
Method
__init__
(self, rnn_type, ninp, ntag, nhid, nlayers, dropout=0)
code/models.py:13
↓ 1 callers
Function
creat_label
Given a dataframe, construct the labels for each timestamps.
code/data.py:12
↓ 1 callers
Method
init_weights
(self)
code/models.py:31
↓ 1 callers
Method
process_data
(self)
code/data.py:76
↓ 1 callers
Method
read_data
(self)
code/data.py:59
↓ 1 callers
Function
train
()
code/cnn.py:105
↓ 1 callers
Function
train
()
code/rnn.py:116
Method
__init__
(self, activation=F.relu, num_classes=3, dropout=0.5)
code/models.py:54
Method
__init__
(self, path, symbol='a', delta=1, alpha=0, scaler=MinMaxScaler)
code/data.py:50
Function
batch_index
(index, bsz)
code/data.py:39
Method
forward
(self, input, hidden)
code/models.py:36
Method
forward
(self, x)
code/models.py:73
Function
subsample_index
Subsample the observations to produce a balanced training set, return a list of index.
code/data.py:22