Giter VIP home page Giter VIP logo

music_recommendation_system's Introduction

Music Recommendation System with Python

This project uses the https://www.kaggle.com/zaheenhamidani/ultimate-spotify-tracks-db/code dataset, you can find it on the link. In the project, i created some functions to build the project. Main purpose of the project is developing a music recommender system with python. It has 2 options. In the first option you can search the database and see some songs you want to search. In the second option you write a song name and an artist name of the song, the model will search the database and find the closest song in the dataset. According to that song it will measure the cosine distance with every other song in the dataset. It'll want you to enter some number of recommendations, and it will give you those recommendations.

You can find my detailed description for the project from the link below.

https://www.kaggle.com/merveeyuboglu/music-recommendation-system-cosine-s

Before I start to say more about the functions here's the detailed features of out data. As you can see, there is lots of features for us to calculate the distance between songs. For object ones, I encoded those features. You can find the implementation in the code.

image

Functions

find_song function

This function is for finding songs in the dataset. As I told before, it searchs the dataset. You can enter a song name or a part of the name, then the programme will find you the tracks.

Here, you can see some examples:

image

image

You can skip entering a name for the song or the artist name. Based on your input, system will search the data and find the songs you want to see.

similar tracks

This function is the second option. You may skip entering the name of a track and find closest songs to the artist of you want to see.

image

In the example above, the user entered a name and an artist name but still you don't have to enter both of them. Here's the user interface:

image

The system works inside a while loop, it means that it will run until you enter a 'q' letter. As you can see, you don't have to enter both of the asked inputs. And also I added a number parameter. If you want to see more similar songs, you can just write how many you want from the system.

Final Comments

I developed this programme in a really short time, so there might be some errors. If there is any errors, i will be glad if you tell me those things. So i hope you enjoy it. It is a pretty simple programme, so it works kind of slowly. You can download the dataset and the code and run it to try yourself. Note: I developed this programme in VS Code.

music_recommendation_system's People

Contributors

merveyubogluu avatar

Watchers

 avatar

Forkers

hadryan

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.