ibaguio
ibaguio

Reputation: 2368

What is the purpose of bit fail in FANN?

im having a response like below from fann

    Epochs            1. Current error: 0.2500066161. Bit fail 4.
    Epochs           58. Current error: 0.0000930788. Bit fail 0.

what does Bit fail mean here?

Upvotes: 11

Views: 4296

Answers (3)

Doug
Doug

Reputation: 21

Yea I have found this confusing as well and thought that it may have been a bug in 'ruby-fann'.

The FANN manual states that it is the number of output neurons failing but doesn't say that it is the total sum of the number of output neurons for the provided sample set. Therefore the worst case 'Bit fail' is ALL of the output neurons failing (beyond the specified bit fail limit) for ALL of the samples.

Upvotes: 2

Junk Mvg
Junk Mvg

Reputation: 157

The bit fail limit is the maximum difference between the expected and actual output neuron value that is allowed.The default bit fail limit is 0.35. If the difference between the expected and actual output neuron value is more that the bit fail limit, this counts as 1 bit fail. In the sample output you gave, at 58 epochs all the output neurons gave actual outputs close enough to the expected outputs and hence the bit fail was 0 and training stopped. In other words all the training examples gave outputs that were close enough to the expected outputs. During the first epoch, 4 of the training samples gave outputs resulting in bit fails.

Upvotes: 6

Birol Kuyumcu
Birol Kuyumcu

Reputation: 1215

from documentation of FANN

The number of fail bits; means the number of output neurons which differ more than the bit fail limit http://leenissen.dk/fann/html/files/fann_train-h.html#fann_get_bit_fail

Upvotes: 4

Related Questions