Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Dogecoin Price Prediction with Machine

Learning
Machine learning proves immensely helpful in many industries in automating tasks
that earlier required human labor one such application of ML is predicting whether a
particular trade will be profitable or not.

Dogecoin is a cryptocurrency, like Ethereum or Bitcoin — despite the fact that it’s
totally different than both of these famous coins. Dogecoin was initially made to some
extent as a joke for crypto devotees and took its name from a previously well-known
meme.

In this Project, we will learn how to predict a signal that indicates whether buying a
particular stock will be helpful or not by using ML. we will be implementing a machine
learning model which can predict the pattern or forecast the price of the coin in the
upcoming days. Let us now move toward the implementation of price prediction.

Let’s start by importing some libraries which will be used for various purposes which
will be explained later in this article.

Importing Libraries

Python libraries make it very easy for us to handle the data and perform typical and
complex tasks with a single line of code.

 Pandas – This library helps to load the data frame in a 2D array format and has
multiple functions to perform analysis tasks in one go.
 Numpy – Numpy arrays are very fast and can perform large computations in a
very short time.
 Matplotlib/Seaborn – This library is used to draw visualizations.
 Sklearn – This module contains multiple libraries having pre-implemented
functions to perform tasks from data preprocessing to model development and
evaluation.
 XGBoost – This contains the eXtreme Gradient Boosting machine learning
algorithm which is one of the algorithms which helps us to achieve high accuracy
on predictions.

import numpy as np

import pandas as pd
import matplotlib.pyplot as plt

import seaborn as sb

from sklearn.model_selection import train_test_split

from sklearn.preprocessing import StandardScaler

from sklearn.linear_model import LogisticRegression

from sklearn.svm import SVC

from xgboost import XGBClassifier

from sklearn import metrics

import warnings

warnings.filterwarnings('ignore')

import pandas as pd

import numpy as np

import matplotlib.pyplot as plt

import seaborn as sns

from sklearn.ensemble import RandomForestRegressor

Now let us load the dataset in the panda’s data frame. One can download the CSV file
from here.

data = pd.read_csv("DOGE-USD.csv")

data.head()

Now, let’s check the correlation

data.corr()

Converting the string date & time in proper date & time format with the help of pandas.
After that check is there any null value is present or not.

data['Date'] = pd.to_datetime(data['Date'], infer_datetime_format=True)

data.set_index('Date', inplace=True)

data.isnull().any()

You might also like