X-Git-Url: https://piware.de/gitweb/?p=handwriting-recognition.git;a=blobdiff_plain;f=README.md;h=760002f714dd303e786e5d55989023d9a15d2ede;hp=96974c990119387ee722e8f5d809536d0885233c;hb=579223dbae47c81cd315f5b575bfd9f6647890f5;hpb=a856d010176366562caf03eaa873bb91f658446e diff --git a/README.md b/README.md index 96974c9..760002f 100644 --- a/README.md +++ b/README.md @@ -49,3 +49,21 @@ output vector of first image: [ 0. 52766.88424917 0. classification of first image: 1 with confidence 52766.88424917019; real label 5 correctly recognized images after initialization: 10.076666666666668% ``` + + - Add backpropagation algorithm and run a first training round. This is slow, as expected: + ``` + $ time ./train.py +output vector of first image: [ 0. 52766.88424917 0. 0. + 14840.28619491 14164.62850135 0. 7011.882333 + 0. 46979.62976127] +classification of first image: 1 with confidence 52766.88424917019; real label 5 +correctly recognized images after initialization: 10.076666666666668% +round #0 of learning... +./train.py:18: RuntimeWarning: overflow encountered in exp + return 1 / (1 + np.exp(-x)) +correctly recognized images: 14.211666666666666% + +real 0m37.927s +user 1m19.103s +sys 1m10.169s +```