Skip to content

Commit

Permalink
Added import and constants in testing functions' code
Browse files Browse the repository at this point in the history
  • Loading branch information
matteaw committed Feb 11, 2020
1 parent 5ef0efe commit cf1abeb
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion code/testing_code.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@
"Testing functions and classes"
]
},
{
"cell_type": "code",
"metadata": {
"id": "biaboE9QGiiI",
"colab_type": "code",
"colab": {}
},
"source": [
"from torchvision import datasets"
],
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
Expand All @@ -32,7 +45,8 @@
},
"source": [
"# Serve per il mapping fra label sul file con le labels per canzone di test e l'indice della label che la rete considera.\n",
"LABELS_FROM_FILE = {'angry' : 0, 'calming' : 1, 'happy' : 2, 'normal' : 3, 'sad' : 4}"
"LABELS_FROM_FILE = {'angry' : 0, 'calming' : 1, 'happy' : 2, 'normal' : 3, 'sad' : 4}\n",
"NUM_CLASSES = 5"
],
"execution_count": 0,
"outputs": []
Expand Down

0 comments on commit cf1abeb

Please sign in to comment.