This repository contains code for training neural networks on various datasets.
main.py
creates a simple GUI application with tkinter that allows users to train and evaluate a crypto/stock price predictor model. The script uses two main classes, ModelTrainer
and ModelLoader
, for training and evaluation.
- Click the "Train Model" button.
- Select a CSV file containing the training data.
- The data is preprocessed, split, and used to train the model.
- The model is saved to a file and evaluated.
- Click the "Load Model" button.
- Select a previously saved model file.
- The model is loaded and evaluated on live data.
- Bidirectional LSTM layer
- Multi-head self-attention layer
- Dropout layer
- Linear output layer
candledownloader.py
downloads candlestick data from Binance using the CCXT library and saves it to a CSV file. Parameters include exchange name, trading pair, timeframe, start and end time, batch size, and output file name.
indicatorsadder.py
loads historical price data, calculates technical indicators (EMA, RSI, Bollinger Bands, CCI, ADX), and pivot points, and saves the data to a CSV file.
indicatorschecker.py
loads a CSV file containing price data and technical indicators, checks for missing or infinite values, drops columns with NaN values, and saves the cleaned data to a new CSV file.
Clone the repository:
git clone https://github.com/qrak/modelTraining.git
cd modelTraining
Create a virtual environment and install the dependencies:
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
This project is licensed under the GNU General Public License v3.0. You can find a copy of the license in the LICENSE file.
This means that you are free to use, modify, and distribute this software, as long as any modifications you make are also released under the GPL. If you distribute a modified version of this software, you must make the source code available under the same terms as this license.
For more information about the GPL, please see https://www.gnu.org/licenses/gpl-3.0.en.html.
This project was made with the help of ChatGPT, a large language model trained by OpenAI, based on the GPT-3.5 architecture. ChatGPT was used to generate text and assist in various aspects of the project's development.