Register    Login    Forum    Search    FAQ

Board index » FANN » Using the library




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Error 10: Error reading info from train data file
 Post Posted: Mon Apr 05, 2010 6:08 pm 
Offline

Joined: Mon Apr 05, 2010 6:02 pm
Posts: 2
Hi, I'm trying to create a project with fann but I'm having some issues, my training file seems to be corrupt (I guess) but I can't find the error.

Code:
$ ./train
FANN Error 10: Error reading info from train data file "../test.data", line: 1243.


This is the contents of test.data:
Code:
621 26 3

9 8 1 1 1 1 0 0 1 0 1
0 1 1 1 0 0 0 0
2 0 1 1 0 37.017 8.06876
0 0 1

2 8 0 0 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0
0 0 0 1 0 53.6362 21.8083
0 1 0

6 8 0 1 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0
0 0 0 1 0 41.0341 9.49041
0 1 0

0 8 1 1 1 1 0 0 0 0 1
1 0 0 1 1 0 0 0
1 0 0 0 0 46.8765 32.0686
0 0 1
[...]


Line 1243 in the file looks like this:
Code:
5 9 1 1 1 1 0 0 0 0 0

Just like it should look. I don't know what the problem may be. Do you have any ideas?


Top 
 Profile  
 
 Post subject: Re: Error 10: Error reading info from train data file
 Post Posted: Sat Apr 24, 2010 11:54 am 
Offline

Joined: Sat Apr 24, 2010 11:47 am
Posts: 3
Hi,
I've expected something similar. It was due to EOL char in training data, changing to LF helped.


Top 
 Profile  
 
 Post subject: Re: Error 10: Error reading info from train data file
 Post Posted: Tue Apr 27, 2010 6:11 pm 
Offline

Joined: Mon Apr 05, 2010 6:02 pm
Posts: 2
Well how did you change to LF?

$ file test.data
test.data: ASCII text


Top 
 Profile  
 
 Post subject: Re: Error 10: Error reading info from train data file
 Post Posted: Wed Apr 28, 2010 7:57 pm 
Offline

Joined: Sat Apr 24, 2010 11:47 am
Posts: 3
http://www.cyberciti.biz/faq/howto-unix ... xt-format/

or easier way - using Kate from KDE.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 4 posts ] 

Board index » FANN » Using the library


Who is online

Users browsing this forum: Google [Bot] and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: