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

label vector can not contain values larger than the size of the label vector #5

Open
rindis opened this issue Jul 15, 2019 · 1 comment

Comments

@rindis
Copy link

rindis commented Jul 15, 2019

If you have a label vector y = [1 3], you will get the following error:

Error using sub2ind (line 55)
Out of range subscript.

Error in nnCostFunction (line 65)
idx = sub2ind([m num_labels],1:m,y');
@vtshitoyan
Copy link
Owner

Thanks for reporting this bug. I haven't been maintaining this repo properly since I haven't been using Matlab lately. If you've already got a fix, I'd appreciate a pull request.

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

No branches or pull requests

2 participants