Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line 136 of CNN.py #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Line 136 of CNN.py #4

wants to merge 1 commit into from

Conversation

sahitya0000
Copy link

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)

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant