MLP train Runtime error

asked 2014-01-08 08:04:31 -0500

AMAWAL gravatar image


I'm trying to train an MLP using CvANN_MLP, but i'm getting a runtime error ... any idea why this is happening? I tried some tutorials that seems to run correctly by others, but I am still having the runtime error,

Thanks in advance

edit retag flag offensive close merge delete


... and the error is ?

berak gravatar imageberak ( 2014-01-08 08:11:46 -0500 )edit

There is no error message, it just says, this application has been stopped ... I am working on codeblocks C++

AMAWAL gravatar imageAMAWAL ( 2014-01-08 08:20:40 -0500 )edit

at least post a minimal code snippet, that reproduces your error, so others can try it

berak gravatar imageberak ( 2014-01-08 08:45:05 -0500 )edit

Here is the tutorial: I also tried on vs 2010, same problem

AMAWAL gravatar imageAMAWAL ( 2014-01-08 09:12:46 -0500 )edit

The line causing the error is:// train mlp.train(trainingData, trainingClasses, cv::Mat(), cv::Mat(), params);

AMAWAL gravatar imageAMAWAL ( 2014-01-08 09:13:30 -0500 )edit

Seems like the problem comes from codeblocks, I succeeded to run it on VS 2010

AMAWAL gravatar imageAMAWAL ( 2014-01-08 09:41:53 -0500 )edit

think so, too. the machine learning tut runs fine here, even on vs2008.

berak gravatar imageberak ( 2014-01-08 10:44:37 -0500 )edit