Register    Login    Forum    Search    FAQ

Board index » FANN » Bugs




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Error in definition of FANN_THRESHOLD_SYMMETRIC
 Post Posted: Wed May 19, 2010 2:56 pm 
Offline

Joined: Wed May 19, 2010 2:43 pm
Posts: 1
Hi everybody,

I just noticed that in the online documentation, the definition of FANN_THESHHOLD_SYMMETRIC is :

Quote:
FANN_THRESHOLD_SYMMETRIC Threshold activation function.

x < 0 -> y = 0, x >= 0 -> y = 1


Reading the code, we have this (fann.c):
Code:
case FANN_THRESHOLD_SYMMETRIC:
                                        neuron_it->value = (fann_type) ((neuron_sum < 0) ? -multiplier : multiplier);
                                        break;


So the definition would rather be :
Quote:
x < 0 -> y = -1, x >= 0 -> y = 1


(ref: http://leenissen.dk/fann/html/files/fann_cpp-h.html#FANN_THRESHOLD_SYMMETRIC)

Regards,

N. Gravillon


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

Board index » FANN » Bugs


Who is online

Users browsing this forum: No registered users 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:  
cron