Git Product home page Git Product logo

rmat112 / cryptocurrencies Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.04 MB

This project is about creating a report that includes what cryptocurrencies are on the trading market and how they could be grouped to create a classification system for a new investment.

Jupyter Notebook 100.00%
unsupervised-machine-learning clustering-algorithm k-means elbow-curves pca heirarchical-clustering dendrograms

cryptocurrencies's Introduction

Cryptocurrencies

Unsupervised Machine Learning

Overview of Analysis

In this project, Unsupervised machine learning is used for, how to process data, how to cluster, how to reduce your dimensions, and how to reduce the principal components using PCA. All these skills are put to use by creating an analysis for clients who are preparing to get into the cryptocurrency market. Accountability Accounting, a prominent investment bank, is interested in offering a new cryptocurrency investment portfolio for its customers. The company, however, is lost in the vast universe of cryptocurrencies. This projects is about creating a report that includes what cryptocurrencies are on the trading market and how they could be grouped to create a classification system for this new investment. The data we will be working with is not ideal, so it will need to be processed to fit the machine learning models. Since there is no known output for what we are looking for, we have decided to use unsupervised learning. To group the cryptocurrencies, we decided on a clustering algorithm. We will use data visualizations to share our findings.

Tools and Resources

Results

This is a link to the Jupyter Notebook crypto_clustering.ipynb. The results of analysis are presented in the following sections.

Section 1: Preprocessing the Data

  • The crypto_data.csv dataset was used to create a pandas DataFrame. The DataFrame is preprocessed to prepare crypto_df DataFrame as illustrated Del1_crypto_df.png
  • A new DataFrame is created that stores all cryptocurrency names from the CoinName column and retains the index from the crypto_df DataFrame coinNames.png
  • The get_dummies() method is used to create variables for the text features, which are then stored in a new DataFrame, X Del1_get_dummies.png
  • The features from the X DataFrame have been standardized using the StandardScaler fit_transform() function crypto_scaled.png

Section 2: Reducing Data Dimensions Using PCA

  • The PCA algorithm reduces the dimensions of the X DataFrame down to three principal components
  • The pcs_df DataFrame is created and has the following three columns, PC 1, PC 2, and PC 3, and has the index from the crypto_df DataFrame Del2.png

Section 3: Clustering Cryptocurrencies Using K-means

The K-means algorithm is used to cluster the cryptocurrencies using the PCA data, where the following steps have been completed:

  • An elbow curve is created using hvPlot to find the best value for K elbow_curve.png
  • Predictions are made on the K clusters of the cryptocurrencies’ data predictions.png
  • A new DataFrame is created with the same index as the crypto_df DataFrame and has the following columns: Algorithm, ProofType, TotalCoinsMined, TotalCoinSupply, PC 1, PC 2, PC 3, CoinName, and Class Del3_new_df.png

Section 4: Visualizing Cryptocurrencies Results

  • The clusters are plotted using a 3D scatter plot, and each data point shows the CoinName and Algorithm on hover scatter_3d.png
  • A table with tradable cryptocurrencies is created using the hvplot.table() function hvplotTable.png
  • The total number of tradable cryptocurrencies Del4_tradable.png
  • A DataFrame is created that contains the clustered_df DataFrame index, the scaled data, and the CoinName and Class columns plot_df.png
  • A hvplot scatter plot is created where the X-axis is "TotalCoinsMined", the Y-axis is "TotalCoinSupply", the data is ordered by "Class", and it shows the CoinName when you hover over the data point 2Dplot.png

cryptocurrencies's People

Contributors

rmat112 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.