{"id":16446827,"url":"https://github.com/alexandrelam/spotifyml","last_synced_at":"2026-05-12T13:36:41.029Z","repository":{"id":153775168,"uuid":"450073910","full_name":"alexandrelam/spotifyml","owner":"alexandrelam","description":"Neural Network Classifier guesses Spotify songs genre 🧠🎸🤘🎼","archived":false,"fork":false,"pushed_at":"2022-01-21T10:17:14.000Z","size":11847,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-26T11:35:21.070Z","etag":null,"topics":["neural","spotify","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexandrelam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-20T11:43:08.000Z","updated_at":"2022-01-20T13:55:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"f81f41cd-0075-4879-971f-0f6b3279c77a","html_url":"https://github.com/alexandrelam/spotifyml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alexandrelam/spotifyml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandrelam%2Fspotifyml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandrelam%2Fspotifyml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandrelam%2Fspotifyml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandrelam%2Fspotifyml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexandrelam","download_url":"https://codeload.github.com/alexandrelam/spotifyml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexandrelam%2Fspotifyml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32942085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["neural","spotify","tensorflow"],"created_at":"2024-10-11T09:48:57.017Z","updated_at":"2026-05-12T13:36:41.023Z","avatar_url":"https://github.com/alexandrelam.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv id=\"top\"\u003e\u003c/div\u003e\n\u003c!--\n*** Thanks for checking out the Best-README-Template. If you have a suggestion\n*** that would make this better, please fork the repo and create a pull request\n*** or simply open an issue with the tag \"enhancement\".\n*** Don't forget to give the project a star!\n*** Thanks again! Now go create something AMAZING! :D\n--\u003e\n\n\u003c!-- PROJECT SHIELDS --\u003e\n\u003c!--\n*** I'm using markdown \"reference style\" links for readability.\n*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).\n*** See the bottom of this document for the declaration of the reference variables\n*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.\n*** https://www.markdownguide.org/basic-syntax/#reference-style-links\n--\u003e\n\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://user-images.githubusercontent.com/25727549/150354737-5e17f6de-f146-4852-909b-8be0536ecf53.png\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/25727549/150354737-5e17f6de-f146-4852-909b-8be0536ecf53.png\" alt=\"Logo\" width=100\" height=\"100\"\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003eNeural Network for Spotify genre \u003cbr /\u003e (97% accuracy)\u003c/h3\u003e\n  \u003cp align=\"center\"\u003e\n    I built a neural network that guesses the genre of a music based on data \u003cbr/\u003e scrapped on Spotify!\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/alexandrelam/spotifyml/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/alexandrelam/spotifyml/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n![image](https://user-images.githubusercontent.com/25727549/150351115-159e7884-6637-41f8-8416-73dd69dc8576.png)\n\n### Built With\n\n- [Tensorflow](https://www.tensorflow.org/?hl=fr)\n- [Keras](https://keras.io/)\n- [Scikit-learn](https://scikit-learn.org/stable/)\n- [Pandas](https://pandas.pydata.org/docs/index.html)\n- [Numpy](https://numpy.org/)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## Results\n\n![image](https://user-images.githubusercontent.com/25727549/150337874-c738bc4e-1e1f-4ca8-977e-690cb10c2bdf.png)\n\n```\nprediction: punk | real result: punk\nprediction: country | real result: country\n\ngood/total: 28/30 - 93%\n```\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n### Getting Started\n\n#### Train the neural network\n\n1. Install dependancies\n\n```\npip install -r requirements.txt\n```\n\n2. Run\n\n```\npython train.py\n```\n\n3. Open the dashboard\n\n```\ntensorboard --logdir=logs\n```\n\n#### Run the test\n\n1. Install dependancies\n\n```\npip install -r requirements.txt\n```\n\n2. Change `NUMBER_VALUES` in `test.py`\n\n3. Run!\n\n```\npython test.py\n```\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n### Media\n\n![image](https://user-images.githubusercontent.com/25727549/150351268-9e431d18-f281-47f6-b01e-b6dec1fb659a.png)\n\n![image](https://user-images.githubusercontent.com/25727549/150351367-9bb9b308-5201-49e5-b9f0-8da06ad5d915.png)\n\n![image](https://user-images.githubusercontent.com/25727549/150337784-b327c5b8-f9e1-4502-af85-032ff020e30d.png)\n\n```\nprediction: pop | real result: pop\nprediction: rock | real result: rock\nprediction: pop | real result: pop\nprediction: edm | real result: edm\nprediction: jazz | real result: jazz\nprediction: electro | real result: electro\nprediction: pop | real result: pop\nprediction: rock | real result: rock\nprediction: salsa | real result: salsa\nprediction: chanson | real result: chanson\nprediction: chanson | real result: hip hop\nprediction: rock | real result: rock\nprediction: hip hop | real result: hip hop\nprediction: dance | real result: dance\nprediction: pop | real result: pop\nprediction: hip hop | real result: soul\nprediction: jazz | real result: jazz\nprediction: pop | real result: pop\nprediction: hip hop | real result: hip hop\nprediction: hip hop | real result: hip hop\nprediction: pop | real result: pop\nprediction: edm | real result: edm\nprediction: dance | real result: dance\nprediction: rock | real result: rock\nprediction: disco | real result: disco\nprediction: rock | real result: rock\nprediction: country | real result: country\nprediction: blues | real result: blues\nprediction: punk | real result: punk\nprediction: country | real result: country\n\ngood/total: 28/30 - 93%\n```\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n### Roadmap\n\n- [x] with a long training acc should be ok, but test dataset has low acc. maybe it's overtraining...\n\n### Things to try\n\n- [x] change the model (layers, categorical to binary?)\n- [x] drop some col on the dataset that are useless\n- [x] check normalization\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n\n[contributors-shield]: https://img.shields.io/github/contributors/alexandrelam/spotifyml.svg?style=for-the-badge\n[contributors-url]: https://github.com/alexandrelam/spotifyml/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/alexandrelam/spotifyml.svg?style=for-the-badge\n[forks-url]: https://github.com/alexandrelam/spotifyml/network/members\n[stars-shield]: https://img.shields.io/github/stars/alexandrelam/spotifyml.svg?style=for-the-badge\n[stars-url]: https://github.com/alexandrelam/spotifyml/stargazers\n[issues-shield]: https://img.shields.io/github/issues/alexandrelam/spotifyml.svg?style=for-the-badge\n[issues-url]: https://github.com/alexandrelam/spotifyml/issues\n[license-shield]: https://img.shields.io/github/license/othneildrew/Best-README-Template.svg?style=for-the-badge\n[license-url]: https://github.com/alexandrelam/spotifyml/blob/master/LICENSE.txt\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge\u0026logo=linkedin\u0026colorB=555\n[product-screenshot]: images/screenshot.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandrelam%2Fspotifyml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexandrelam%2Fspotifyml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandrelam%2Fspotifyml/lists"}