This project focuses on predicting cryptocurrency prices using Python, Jupyter Notebook, and various data science libraries. The model leverages historical price data and machine learning techniques to forecast future prices, providing insights for traders and investors.
- Fetch real-time and historical crypto data
- Data preprocessing with Pandas & NumPy
- Exploratory Data Analysis (EDA) using Matplotlib & Seaborn
- Machine Learning models for price prediction (e.g., Linear Regression, LSTM, Random Forest)
- Model evaluation with performance metrics
- Interactive visualization of predictions
- Programming Language: Python
- IDE: Jupyter Notebook
- Data Processing: Pandas, NumPy
- Visualization: Matplotlib, Seaborn
- Machine Learning: Scikit-learn, TensorFlow/Keras (for deep learning models)
- APIs for Data Retrieval: CoinGecko API, Binance API
The dataset consists of historical price data for various cryptocurrencies (e.g., Bitcoin, Ethereum). It includes features like:
- Open, High, Low, Close (OHLC) prices
- Volume traded
- Market capitalization
- Technical indicators (moving averages, RSI, MACD, etc.)
Data is fetched from APIs such as Binance, CoinGecko, or Kaggle datasets.
The model training process involves:
- Data Collection & Cleaning
- Feature Engineering (e.g., Moving Averages, RSI, MACD)
- Training Machine Learning Models (Linear Regression, LSTMs, Random Forest, etc.)
- Hyperparameter Tuning & Optimization
- Model Evaluation & Validation
- Visualization of Predictions
git clone https://github.com/mehdidinaru/crypto-price-predict.git
cd crypto-price-predictpython -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activatepip install -r requirements.txt- Open Jupyter Notebook:
jupyter notebook
- Run the notebooks in the
notebooks/directory to fetch data, preprocess, train, and evaluate the model. - Modify parameters and retrain the model as needed.
- The model is evaluated using metrics such as:
- Mean Squared Error (MSE)
- Root Mean Squared Error (RMSE)
- Mean Absolute Percentage Error (MAPE)
- Comparison of different models' performance
- Visualization of predicted vs. actual prices
- Integrating more advanced models like Transformers
- Implementing Reinforcement Learning for trading strategies
- Deploying the model via Flask/Django API
- Creating a real-time prediction dashboard
Contributions are welcome! If you'd like to contribute, please fork the repository and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.