-
Notifications
You must be signed in to change notification settings - Fork 90
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
Exception in mnist_cnn.cpp #183
Comments
Hey @AdmiralPellaeon, thanks for the report. What version of mlpack are you compiling against? |
It's mlpack-3.4.2. |
Ah, ok, thanks for the information. I think that is the issue. mlpack-3.4.2 is pretty old now but we haven't released mlpack 4 yet because we are in the midst of a big refactoring. If you can download the latest // Create labels for training and validatiion datasets.
const mat trainY = train.row(0);
const mat validY = valid.row(0); to this: // Create labels for training and validatiion datasets.
const mat trainY = train.row(0) + 1;
const mat validY = valid.row(0) + 1; Sorry for the inconvenience! I hope we will be able to release and package a new version of mlpack soon (there is still lots of refactoring to do though). |
Thanks for the answer. I will test it! |
yes,it is work! |
I build mlpack with VS2019 x64 for Windows. I also created the needed CSV file with the data with the help of the python script from the tools directory.
I tried to run the "mnist_cnn.cpp" from this repo. Compiling works fine, but during the training an exception is thrown: "error: Mat::operator(): index out of bounds".
This is the call stack until the exception occurs:
Best regards
The text was updated successfully, but these errors were encountered: