Giter VIP home page Giter VIP logo

clustering_spotify_songs's Introduction

ClusteringSpotifySongs

Initially, a smaller dataframe of SpotifySongs was clustered into 5 "supergenres" using kmeans_pca. Then, a bigger dataframe was clustered into 50 different clusters.

The earliest was done by pipelining said dataframe using StandardScaler to keep track of all values accordingly to their standard deviation and PCA to get the 2 principal bilinear components from said dataframe. Then, Kmenas PCA was used to agroup all songs into one of 5 different "supergenres" (clusters).

The latter was done accordingly to the same logic from the previous one, but one hot encoding was used to encode the "artists" column of said dataframe. As that encoding was used, it was combined with an argument of n_components = 0.7. It was done because the encoding generated 875 columns; meaning that going for an argument of explained variance. At the clustering stage, these 20000 songs were clustered into one of 50 different clusters. Then, the first two principal components generated by the first PCA were used to calculate the euclidean distances between the choosen song and each of the other songs that were grouped in the same cluster as said song; sorting these songs accordingly to this distance.

clustering_spotify_songs's People

Contributors

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