Comments (5)
Thanks for the answer. I will test it!
from examples.
train.row(0)
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
git master
branch from https://github.com/mlpack/mlpack and use that and compile the MNIST CNN example against that version, it should work. If you can't, then I think this should fix it, if you change these lines:// 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).
yes,it is work!
from examples.
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 git master
branch from https://github.com/mlpack/mlpack and use that and compile the MNIST CNN example against that version, it should work. If you can't, then I think this should fix it, if you change these lines:
// 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).
from examples.
Hey @AdmiralPellaeon, thanks for the report. What version of mlpack are you compiling against?
from examples.
It's mlpack-3.4.2.
from examples.
Related Issues (20)
- MNIST CNN EXAMPLE NOT RUNNING PROPERLY HOT 19
- New Example Using YOLO HOT 10
- Error building the mnist_cnn and mnist_simple example HOT 5
- Guidelines for adding new examples HOT 12
- Fix lstm_stock_prediction dataset location HOT 3
- `mnist_batch_norm` fails with incorrect matrix multiply size HOT 7
- Problem in shebang line in "download_data_set.py" HOT 2
- Bug in RNN HOT 1
- exception: std::logic_error HOT 18
- Changing CNN weights HOT 3
- DBSCAN example datasets? HOT 3
- Put examples in folder by language HOT 14
- MNIST dataset HOT 1
- it is solved! HOT 1
- Set up CI workflow on Jenkins HOT 1
- Target class out of range when compiling and running mnist examples HOT 4
- Mlpack tutorials on NLP related projects HOT 3
- MNIST simple example fails training against mlpack 3.4.2 on Windows/MSVC Visual Studio 17 latest HOT 3
- Error compiling : RNN class : expected a type, got MeanSquaredError HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from examples.