deeplearning4nlp-tutorial icon indicating copy to clipboard operation
deeplearning4nlp-tutorial copied to clipboard

Line 136 of CNN.py

Open sahitya0000 opened this issue 8 years ago • 0 comments

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)

sahitya0000 avatar Jul 03 '17 18:07 sahitya0000