added neural net notebook

This commit is contained in:
andy 2021-05-06 16:19:44 +01:00
parent 21516dc9ca
commit ffc16c9ab0
7 changed files with 1680 additions and 506 deletions

2
.gitignore vendored
View File

@ -7,6 +7,8 @@ scratch.py
service.json
cache.json
.env
.venv
tensorboard-logs
# Created by https://www.toptal.com/developers/gitignore/api/jupyternotebooks
# Edit at https://www.toptal.com/developers/gitignore?templates=jupyternotebooks

View File

@ -4,7 +4,8 @@ Notebooks:
* [analysis](analysis.ipynb) for a intro to the dataset and premise
* [artist](artist.ipynb), [album](./album.ipynb) & [playlist](playlist.ipynb) investigations
* [stats](stats.ipynb) for high-level stats about the dataset (Spotify feature miss ratio)
* [playlist classifier](./playlist-classifier.ipynb) using Scikit to classify tracks using the contents of playlists as models
* [playlist SVM](./playlist-svm.ipynb) using Scikit to classify tracks using the contents of playlists as models
* [playlist NN](./playlist-nn.ipynb) using a multi-layer perceptron to classify tracks using the contents of playlists as models
Combining Spotify & Last.fm data for exploring habits and trends
Uses two data sources,

File diff suppressed because one or more lines are too long

417
playlist-nn.ipynb Normal file

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Playlist Classifier\n",
"# Playlist SVM\n",
"\n",
"Given a list of playlists, can unknown tracks be correctly classified?"
]
@ -521,7 +521,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.4"
"version": "3.8.9"
}
},
"nbformat": 4,

1368
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -5,10 +5,10 @@ description = "Analysing listening habits using Spotify & Last.fm data"
authors = ["andy <andy@sarsoo.xyz>"]
[tool.poetry.dependencies]
python = ">=3.8,<3.10"
python = "~3.8"
spotframework = {path = "../spotframework"}
fmframework = {path = "../fmframework"}
numpy = "^1.20.0"
numpy = "*"
pandas = "^1.2.1"
opencv-python = "^4.5.1"
ipykernel = "^5.4.3"
@ -19,6 +19,9 @@ matplotlib = "^3.3.4"
pyarrow = "^3.0.0"
scikit-learn = "^0.24.1"
ipympl = "^0.6.3"
tensorflow = "^2.4.1"
google-cloud-bigquery-storage = "^2.4.0"
seaborn = "^0.11.1"
[tool.poetry.dev-dependencies]
pylint = "^2.6.0"