Giter Site home page Giter Site logo

cryptoclustering's Introduction

CryptoClustering

The requirements for this challenge were to use unsupervised learning technique of k-Means clustering to group cryptocurrencies by their performance to create portfolio portfolio recommendations.

Data Used

crypto_market_data.csv - market data of different cryptocurrencies during different time periods

Summary

Using the elbow curve method to normalize the data to find the optimal k value for the k-Means model that will use all of the original features of the dataset.

pca k values elbow curve

Elbow curve plot showing a value of 4 for k to be optimal for the dataset with all features

A k-Means model was trained and predicted using the best k values, resulting in four clusters of cryptocurrencies. The inertia of each cluster was large enough to consider reducing the number of features.

scatter plot crypto currency

A scatter plot showing 4 clusters with heavy inertia

To reduce the amount of features used, the Principal Component Analysis (PCA) was applied to create three primary clusters.

kvalues elbow curve

DataFrame holding 3 primary clusters as columns and cryptocurrency as inde

Then the PCA data was used to recalculate the optimal k value for the k-Means model.

image

Elbow curve line plot from the PCA data that shows 4 to be the optimal k value

Finally, a new cluster was drawn using the best k value of the PCA feature.

primary clusters

Scatter plot showing 4 low inertia clusters generated using the PCA dataframe


Technologies

This project uses Jupyter Notebook using a Python 3 kernel.

Dependencies used:

  1. [Jupyter] - Running code
  2. [Conda] - Dev environment
  3. [Pandas] - Data analysis
  4. [Matplotlib] - Data visualization
  5. [Numpy] - Data calculations & Pandas support
  6. [hvPlot] - Interactive Pandas plots
  7. [scikit-learn] - kMeans clustering, PCA, and StandardScaler

cryptoclustering's People

Contributors

mznaturl1 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.