Skip to content

Algode18/Ethereum_forecast

Repository files navigation

Ethereum Price Forecasting (2016--2023)

An end‑to‑end machine learning project to forecast Ethereum prices using historical data, regression models, feature engineering, and detailed visualizations.


🚀 Project Overview

This project focuses on exploring, cleaning, and forecasting Ethereum (ETH) prices using multiple regression models.
Key features include:

  • Data preprocessing & validation\
  • Feature engineering\
  • Model training (Linear Regression, Random Forest, XGBoost)\
  • Hyperparameter optimization\
  • Visual prediction plots\
  • Model evaluation (R², RMSE, MAPE)

📂 Project Structure

ethereum-forecast/
│── eth_dataset/
│    ├── Ethereum_Merged_Data.csv
│    └── ETH_8_Years.json
│
│── src/
│    └── ethereum_forecast.py
│
│── requirements.txt
│── run.sh
│── setup.sh
│── README.md

📊 Example Visualizations

🔵 Actual vs Predicted Price

Shows how close the predictions are to real ETH prices.

Actual vs Predicted


📈 Prediction Line Chart

Displays predicted trend lines compared to actual historical prices.

Prediction Line Chart


🔍 Zoomed-In High-Detail Segment

Highlights a smaller part of the dataset to show model accuracy.

Zoomed Detail


🧹 Data Preprocessing Steps

  • Removing duplicates\
  • Handling missing values\
  • Outlier treatment using IQR\
  • Feature scaling (MinMaxScaler / StandardScaler)\
  • Converting date to useful features (Day, Month, Year, DayOfWeek)

🤖 Models Used

Model Description


Linear Regression Baseline simple model Random Forest Regressor Handles nonlinear patterns XGBoost Regressor Best-performing model


🧪 Evaluation Metrics

Metric Meaning


R² Score Measures model fit RMSE Measures prediction error MAPE Percentage error


🛠️ Installation

1. Clone this repository:

git clone https://github.com/YOUR_USERNAME/ethereum-forecast.git
cd ethereum-forecast

2. Create & activate virtual environment:

python -m venv venv
venv\Scripts�ctivate      # Windows
source venv/bin/activate   # Linux/Mac

3. Install dependencies:

pip install --upgrade pip
pip install -r requirements.txt

▶️ Run the Project

python src/ethereum_forecast.py

📦 Output

The script generates:

  • Multiple prediction plots\
  • Model evaluation metrics\
  • Saved visualizations in /plots/ folder

🤝 Contributors

  • Team of 10 Members
    Each member handled different parts such as: Data Cleaning, EDA, Model Training, Visualization, Optimization, Documentation, Presentation, Dataset Research, Testing, Deployment Setup.

📜 License

MIT License


⭐ Support

If you like this project, give it a ⭐ on GitHub!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors