Skip to content

Commit

Permalink
Added model pretest
Browse files Browse the repository at this point in the history
  • Loading branch information
AnanthVivekanand committed Oct 20, 2020
1 parent 87d3b34 commit 13bd8f2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,18 @@
"model.compile(loss='categorical_crossentropy', metrics=['accuracy'], optimizer='adam')\n",
"model.summary()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"score = model.evaluate(x_test, y_test, verbose=1)\n",
"accuracy = 100*score[1]\n",
"\n",
"print(\"Pre-training accuracy: %.4f%%\" % accuracy) "
]
}
],
"metadata": {
Expand Down

0 comments on commit 13bd8f2

Please sign in to comment.