Condition Coverage

blib/lib/AI/NaiveBayes1.pm
Criterion Covered Total %
condition 13 24 54.1


and 3 conditions

line !l l&&!r l&&r condition
179 7 0 121 exists $self->{'stat_attributes'}{$att}{$attval}{$label} and $self->{'stat_attributes'}{$att}{$attval}{$label} > 0
191 46 0 6 exists $self->{'smoothing'}{$att} and $self->{'smoothing'}{$att} =~ /^unseen count=/
216 5 0 0 defined $self->{'smoothing'}{'att'} and $self->{'smoothing'}{'att'}
271 0 4 68 exists $m->{'condprob'}{$att}{$attval} and exists $m->{'condprob'}{$att}{$attval}{$label}
4 0 68 exists $m->{'condprob'}{$att}{$attval} and exists $m->{'condprob'}{$att}{$attval}{$label} and $m->{'condprob'}{$att}{$attval}{$label} > 0
314 24 0 1 $#_ > -1 and $_[0] eq 'with counts'

or 3 conditions

line l !l&&r !l&&!r condition
229 0 0 53 not defined $m->{'real_stat'}{$att}{$label}{'count'} or $m->{'real_stat'}{$att}{$label}{'count'} == 0
269 36 0 0 exists $self->{'stat_attributes'}{$att}{$attval} or exists $self->{'smoothing'}{$att}