-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
@@ -211,6 +214,7 @@ def event_handler(event): | |||
output_layer=predict, | |||
parameters=parameters, | |||
input=test_data, | |||
feeding=feeding, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bug is here. The feeding
should be set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see.
@@ -178,7 +181,7 @@ def event_handler(event): | |||
print "Pass %d, Batch %d, Cost %f, %s" % ( | |||
event.pass_id, event.batch_id, event.cost, event.metrics) | |||
if event.batch_id % 1000 == 0: | |||
result = trainer.test(reader=reader, feeding=feeding) | |||
result = trainer.test(reader=test_reader, feeding=feeding) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is another bug but not related to issue.
train_reader
and test_reader
should be two instances because test
will read all data in reader
. If they are the same instance, training data will be reset every time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
@@ -211,6 +214,7 @@ def event_handler(event): | |||
output_layer=predict, | |||
parameters=parameters, | |||
input=test_data, | |||
feeding=feeding, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see.
Fix #374