Discussion:
Problem reimplementing fann_train_on_file
Alberto Fernández
2007-01-26 19:17:51 UTC
Permalink
Hello,

I'd like to use fann in a Qt application and I want to show the messages in a window instead in the console.

I try to reimplement "fann_train_on_file" to show the message in a window but the application gets a fatal error.

If I call the original function the program runs ok, but when I copy the code and rename, it fails.

The offending instruccion I think it's the callback instruction:

------->
void trainOnData(struct fann *ann, struct fann_train_data *data,
unsigned int max_epochs,
unsigned int epochs_between_reports,
float desired_error) {

// original code
else if(((*ann->callback)(ann, data, max_epochs, epochs_between_reports,
desired_error, i)) == -1) {
// rest of code

The program fails at that point and I don't know why, because the function it's the same.

Any help would be very useful.

Thank you in advance.

--
Alberto Fernandez



---------------------------------

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

Loading...