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! π
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.
The dataset used in this project contains historical Bitcoin prices with the following columns:
- Date
- Open
- High
- Low
- Close
- Adj Close
- Volume
- Clone the repository:
git clone https://github.com/Armanx200/Bitcoin_Price_Prediction.git
- Navigate to the project directory:
cd Bitcoin_Price_Prediction
- Install the required packages:
pip install -r requirements.txt
- Ensure your dataset (
BTC-USD.csv
) is in the project directory. - Run the script to train the model and make predictions:
python BTC.py
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%
Contributions are welcome! Please open an issue or submit a pull request if you have any suggestions or improvements.
Made with β€οΈ by Arman Kianian