Skip to content

Commit

Permalink
separate data folder (usage part)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeff committed Jun 17, 2020
1 parent 5b3ac9e commit 68d7d0d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ __pycache__/
# IPython checkpoints
.ipynb_checkpoints/

# Environment
.env
.python-version

# Data
*.csv
*.pickle
*.mp3
8 changes: 4 additions & 4 deletions analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
"metadata": {},
"outputs": [],
"source": [
"tracks = utils.load('tracks.csv')\n",
"genres = utils.load('genres.csv')\n",
"features = utils.load('features.csv')\n",
"echonest = utils.load('echonest.csv')\n",
"tracks = utils.load('data/fma_metadata/tracks.csv')\n",
"genres = utils.load('data/fma_metadata/genres.csv')\n",
"features = utils.load('data/fma_metadata/features.csv')\n",
"echonest = utils.load('data/fma_metadata/echonest.csv')\n",
"\n",
"np.testing.assert_array_equal(features.index, tracks.index)\n",
"assert echonest.index.isin(tracks.index).all()\n",
Expand Down
6 changes: 3 additions & 3 deletions baselines.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
"source": [
"AUDIO_DIR = os.environ.get('AUDIO_DIR')\n",
"\n",
"tracks = utils.load('tracks.csv')\n",
"features = utils.load('features.csv')\n",
"echonest = utils.load('echonest.csv')\n",
"tracks = utils.load('data/fma_metadata/tracks.csv')\n",
"features = utils.load('data/fma_metadata/features.csv')\n",
"echonest = utils.load('data/fma_metadata/echonest.csv')\n",
"\n",
"np.testing.assert_array_equal(features.index, tracks.index)\n",
"assert echonest.index.isin(tracks.index).all()\n",
Expand Down
2 changes: 2 additions & 0 deletions data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
8 changes: 4 additions & 4 deletions usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
"AUDIO_DIR = os.environ.get('AUDIO_DIR')\n",
"\n",
"# Load metadata and features.\n",
"tracks = utils.load('tracks.csv')\n",
"genres = utils.load('genres.csv')\n",
"features = utils.load('features.csv')\n",
"echonest = utils.load('echonest.csv')\n",
"tracks = utils.load('data/fma_metadata/tracks.csv')\n",
"genres = utils.load('data/fma_metadata/genres.csv')\n",
"features = utils.load('data/fma_metadata/features.csv')\n",
"echonest = utils.load('data/fma_metadata/echonest.csv')\n",
"\n",
"np.testing.assert_array_equal(features.index, tracks.index)\n",
"assert echonest.index.isin(tracks.index).all()\n",
Expand Down

0 comments on commit 68d7d0d

Please sign in to comment.