This repository contains a machine learning project focused on predicting cryptocurrency prices using various algorithms, including Random Forest, Linear Regression, and K-Nearest Neighbors (KNN).
The dataset used in this project consists of historical cryptocurrency price data and is provided in a CSV format. You can download the dataset directly from this repository.
To download the dataset, follow these steps:
-
From GitHub Website:
- Go to the
datasetsdirectory in this repository. - Click on the dataset CSV file (e.g.,
cryptocurrency_data.csv). - Once the file opens, click on the "Download" button (or right-click on "Raw" and choose "Save Link As...") to save the file to your local machine.
- Go to the
-
Using Git Command Line:
- Clone the repository:
git clone https://github.com/yourusername/crypto-price-prediction.git
- Navigate to the
datasetsdirectory:cd crypto-price-prediction/datasets - The dataset CSV file (e.g.,
cryptocurrency_data.csv) will be available in thedatasetsdirectory after cloning.
- Clone the repository:
You can load the CSV dataset into your Python script using pandas as shown below:
import pandas as pd
# Load the dataset
df = pd.read_csv('datasets/cryptocurrency_data.csv')
# Display the first few rows of the dataset
print(df.head())