This project demonstrates historical predictions of the price of a cryptocurrency against an "against currency" using a multi-layered LSTM neural network. The project is heavily modular, with different components for data loading, preprocessing, model building, training, prediction, and plotting. Plotting is done dynamically for visualization aid of predictions.
Furthermore, percent error is calculated throughout each prediction value, based on the prediction data, and the real ticker data.
To get started with this project, you need to install the required packages. Follow the steps below:
-
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use `venv\ScriptsActivate`
-
Install the required packages:
pip install -r requirements.txt
within architecture
data_loader.py
: Module for loading and preprocessing data.model_builder.py
: Module for building and compiling the model.trainer.py
: Module for training the model.predictor.py
: Module for testing and making predictions.plotter.py
: Module for plotting the results.run.py
: The main script that ties everything together.
-
Clone the repository:
git clone https://github.com/oskccy/cryptocurrency-val-prediction.git cd cryptocurrency-val-prediction
-
Run the project:
python run.py
You can customize the cryptocurrency and fiat currency pair by changing the
crypto
andagainst
variables directly in the console. Make sure it's a real crypto ticker and against currency.
contributing to this project would mean the world to me. make this better, sumbit pull requests, because im not a genius. thank you so much!