mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
2.1 KiB
Executable File
Vendored
2.1 KiB
Executable File
Vendored
usage: mlp [-d N_DAYS] [-i N_INPUTS] [--epochs N_EPOCHS] [-e S_END_DATE] [--batch_size N_BATCH_SIZE] [--xla_cpu] [--xla_gpu]
[--force_gpu_allow_growth {true,false,default}] [--loops N_LOOPS] [-v VALID_SPLIT] [--lr LR] [--no_shuffle] [-h]
Multi-Layered-Perceptron.
Due to the complexity of defining a model through command line, one can define it in: config_neural_network_models.txt
MultiLayer_Perceptron \
= [ {'Dense':
{'units':50, 'activation':'relu'} },
{'Dense':
{'units':100, 'activation':'relu'} },
{'Dense':
{'units':80, 'activation':'relu'} },
{'Dense':
{'units':30, 'activation':'relu'} },
{'Dense':
{'activation':'relu'} }]
optional arguments:
-d N_DAYS, --days N_DAYS
prediction days.
-i N_INPUTS, --input N_INPUTS
number of days to use for prediction.
--epochs N_EPOCHS number of training epochs.
-e S_END_DATE, --end S_END_DATE
The end date (format YYYY-MM-DD) to select - Backtesting
--batch_size N_BATCH_SIZE
batch size for model fitting (use a power of 2)
--xla_cpu enable XLA for CPU (see https://www.tensorflow.org/xla)
--xla_gpu enable XLA for GPU (see https://www.tensorflow.org/xla)
--force_gpu_allow_growth {true,false,default}
true: GPU memory will grow as needed.
false: TensorFlow will allocate 100% of GPU memory.
default: usually the same as false, uses env/TensorFlow default
--loops N_LOOPS number of loops to iterate and train models
-v VALID_SPLIT, --valid VALID_SPLIT
Validation data split fraction
--lr LR Specify learning rate for optimizer.
--no_shuffle Specify if shuffling validation inputs.
-h, --help show this help message
