deeplearning4nlp-tutorial
deeplearning4nlp-tutorial copied to clipboard
Line 136 of CNN.py
Current -> for targetLabel in xrange(1, max(yTest)): Proposed change -> for targetLabel in xrange(1, max(yTest)+1):
Here, we are iterating over all categories which are numbered from 0 to 18 (inclusive). Zero is ignored since it is "Other" category I guess. To incorporate the highest category number 18, it should be xrange(1, max(yTest)+1)