Skip to content

πŸ“ˆ Bitcoin Price Prediction using Random Forest Regressor 🧠

Notifications You must be signed in to change notification settings

Armanx200/Bitcoin_Price_Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


πŸ“ˆ Bitcoin Price Prediction using Random Forest Regressor 🧠

Welcome to the Bitcoin Price Prediction project! This repository contains code to load, preprocess, and train a machine learning model to predict Bitcoin closing prices. Using historical data, we employ a RandomForestRegressor to make predictions and evaluate the model's performance. Let's dive into the details! πŸš€

πŸ—‚οΈ Table of Contents

🌟 Introduction

Predicting Bitcoin prices is both a fascinating and challenging task. This project demonstrates how machine learning can be applied to forecast the closing prices of Bitcoin using historical data.

πŸ“Š Dataset

The dataset used in this project contains historical Bitcoin prices with the following columns:

  • Date
  • Open
  • High
  • Low
  • Close
  • Adj Close
  • Volume

πŸ› οΈ Installation

  1. Clone the repository:
    git clone https://github.com/Armanx200/Bitcoin_Price_Prediction.git
  2. Navigate to the project directory:
    cd Bitcoin_Price_Prediction
  3. Install the required packages:
    pip install -r requirements.txt

πŸš€ Usage

  1. Ensure your dataset (BTC-USD.csv) is in the project directory.
  2. Run the script to train the model and make predictions:
    python BTC.py

πŸ“ˆ Results

The model's performance is evaluated using Mean Squared Error (MSE) and Mean Absolute Error (MAE). Below is the accuracy of the model within a threshold of 2%:

Accuracy: 99.36%

πŸ“Š Actual vs Predicted Close Price Plot

Plot of Actual vs Predicted Close Price

🀝 Contributing

Contributions are welcome! Please open an issue or submit a pull request if you have any suggestions or improvements.


Made with ❀️ by Arman Kianian