Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Simple_Neural_Network.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
" # Adjust the weights.\n",
" self.synaptic_weights += adjustment\n",
" if (iteration % 1000 == 0):\n",
" print (\"error after %s iterations: %s\" % (iteration, str(numpy.mean(numpy.abs(error)))))\n",
" print (\"error after %s iterations: %s\" % (iteration, str(np.mean(np.abs(error)))))\n",
"\n",
" # The neural network thinks.\n",
" def think(self, inputs):\n",
Expand Down