- Time series classifiers. 5 classes
- Time series extrapolation. Seq2Seq
For some reason, the image can not be built from docker compose command. Need to docker pull
first.
docker pull quay.io/jupyter/pytorch-notebook
docker compose build
docker compose run --service-ports jupyter-pytorch /bin/bash
. Start container with--service-ports
to enable port forwarding.jupyter notebook --ip 0.0.0.0 --no-browser --allow-root
tensorboard --logdir=tb_logs --bind_all
- Choose the close-price VS time series data.
Open, High, Low
are not used. - Digitize the close-price data into 5 classes.
- Assume the data is sequential. Use LSTM to classify the data.
When dealing with imbalanced data like this, there are several techniques you can use to address the issue. Here are some common approaches:
Oversampling the minority classes:
Random Oversampling SMOTE (Synthetic Minority Over-sampling Technique) Undersampling the majority class:
Random Undersampling Cluster Centroids Combination of Oversampling and Undersampling:
SMOTEENN SMOTETomek Adjust class weights:
Many machine learning algorithms allow you to specify class weights Use ensemble methods:
Random Forest with balanced subsample BalancedRandomForestClassifier
- Vary window size from 5, 10, 15, 20
- Vary neural network architecture, LSTM, GRU, RNN
- Vary the number of layers
- Vary the number of neurons in each layer
- Vary the number of epochs
- X is the close price of the stock. Y is the class of the stock price. 7 classes. Y is calculated from the latest rate of change of closed-price data.