Skip to content

Commit dfa83ab

Browse files
committed
alternative workflow using Jupyter Notebooks
1 parent befa4b4 commit dfa83ab

14 files changed

+498
-139
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ trim_trailing_whitespace = true
77
insert_final_newline = true
88

99
[*.py]
10-
indent_style = tab
10+
indent_style = space
1111
indent_size = 4
1212

1313
[*.{json,yml}]

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ Built files will be ignored by `git`, please don't track them.
1313

1414
1. Install Pipenv:
1515

16-
pip3 install pipenv
16+
pip install pipenv
1717

1818
2. Initialize environment:
1919

2020
pipenv sync
2121

22-
3. Download dataset & unpack:
22+
3. Run Jupyter Notebook:
2323

24-
pipenv run python bin/download_dataset.py
24+
pipenv run jupyter notebook music_emotion_recognition.py
2525

26-
4. Run entry point:
26+
4. Profit
2727

28-
pipenv run python bin/main.py
28+
NB: if you have issues on the imports, check your kernel, it has to be the one connected with the virtual environment (e.g. "Python 3.7.4 64-bit ('project': pipenv)")

project/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ dataset/
22
run/
33
*.egg-info
44
*.pyc
5+
*.ipynb
6+
.ipynb_checkpoints/

project/Pipfile

+9-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@ verify_ssl = true
55

66
[packages]
77
requests = "*"
8-
mer = { path = "./", editable = true }
8+
pandas="*"
9+
numpy="*"
10+
librosa="*"
11+
scikit-learn="*"
12+
matplotlib="*"
13+
tqdm="*"
14+
ipykernel="*"
15+
jupyterlab="*"
16+
jupytext="*"
917

1018
[requires]
1119
python_version = "3"

0 commit comments

Comments
 (0)