X-Git-Url: https://piware.de/gitweb/?p=handwriting-recognition.git;a=blobdiff_plain;f=train.py;h=366a5a06a2d7b7a9f436228fb4d4b873d0ed5495;hp=8a6dc96f2c1d40281d452fc3c894fffb79a73436;hb=a856d010176366562caf03eaa873bb91f658446e;hpb=0ea12b213873b4bef12e1f2b65eed64704ee040f diff --git a/train.py b/train.py index 8a6dc96..366a5a0 100755 --- a/train.py +++ b/train.py @@ -46,7 +46,7 @@ for i in range(1, NUM_LAYERS): biases.append(rg.normal(scale=10, size=SIZES[i])) -def feed_forward(x, transfer=reLU): +def feed_forward(x, transfer=sigmoid): '''Compute all z and output vectors for given input vector''' a_s = [x]