Author: dligach
Date: Wed Oct 12 19:39:06 2016
New Revision: 1764524

URL: http://svn.apache.org/viewvc?rev=1764524&view=rev
Log:
moved dropout in the hidden layer to come first (this improves performance for 
event-event and has no effect for event-time)

Modified:
    ctakes/trunk/ctakes-temporal/scripts/nn/cnn_train.py

Modified: ctakes/trunk/ctakes-temporal/scripts/nn/cnn_train.py
URL: 
http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/scripts/nn/cnn_train.py?rev=1764524&r1=1764523&r2=1764524&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/scripts/nn/cnn_train.py (original)
+++ ctakes/trunk/ctakes-temporal/scripts/nn/cnn_train.py Wed Oct 12 19:39:06 
2016
@@ -67,8 +67,8 @@ def main(args):
     model = Sequential()
     model.add(Merge(branches, mode='concat'))
 
-    model.add(Dense(300))
     model.add(Dropout(0.25))
+    model.add(Dense(300))
     model.add(Activation('relu'))
 
     model.add(Dropout(0.25))


Reply via email to