Branch Coverage

blib/lib/AI/Perceptron.pm
Criterion Covered Total %
branch 15 24 62.5


line true false branch
58 1 2 if ($args{'W'})
80 1 99 wantarray ? :
87 0 2 unless ref $ex eq 'ARRAY'
90 0 2 unless abs $target == 1
113 29 2 $sum > 0 ? :
121 0 1 if @_
130 0 14 if ($self->max_iterations > 0 and $iter >= $self->max_iterations)
142 0 14 if $Debug > 1
148 0 14 if $output == $expected_output
167 14 1 if $self->compute_output(@inputs) != $output
201 15 0 unless $Debug
203 0 0 unless grep /\n/, @_