Branch Coverage

blib/lib/Data/Mining/Apriori.pm
Criterion Covered Total %
branch 0 124 0.0


line true false branch
54 0 0 unless defined $self->{'keyItemsDescription'}
56 0 0 unless defined $self->{'keyItemsTransactions'}
58 0 0 unless defined $self->{'metrics'}{'minSupport'}
60 0 0 unless defined $self->{'metrics'}{'minConfidence'}
64 0 0 unless scalar @_ == 2
66 0 0 unless ref $_[1] eq 'ARRAY'
77 0 0 unless scalar @_ == 3
81 0 0 unless open FILE, "<$file"
86 0 0 if (scalar @items >= 2)
100 0 0 if ($self->{'messages'})
111 0 0 if ($self->{'messages'})
128 0 0 if join($", @consequent) ~~ \@{$self->{'implications'}{join $", @antecedent};}
129 0 0 if defined $self->{'limitSubsets'} and $self->{'numberSubsets'} == $self->{'limitSubsets'}
135 0 0 unless $self->{'keyItemsTransactions'}{join $", @antecedent}
137 0 0 unless $self->{'keyItemsTransactions'}{join $", @implication}
140 0 0 if $support < $self->{'metrics'}{'minSupport'}
142 0 0 if defined $self->{'metrics'}{'minConfidence'} and $confidence < $self->{'metrics'}{'minConfidence'}
144 0 0 if defined $self->{'metrics'}{'minLift'} and $lift < $self->{'metrics'}{'minLift'}
146 0 0 if defined $self->{'metrics'}{'minLeverage'} and $leverage < $self->{'metrics'}{'minLeverage'}
147 0 0 1 - $confidence == 0 ? :
0 0 1 - $supportConsequent == 0 ? :
148 0 0 if defined $self->{'metrics'}{'minConviction'} and $conviction < $self->{'metrics'}{'minConviction'}
150 0 0 if defined $self->{'metrics'}{'minCoverage'} and $coverage < $self->{'metrics'}{'minCoverage'}
152 0 0 if defined $self->{'metrics'}{'minCorrelation'} and $correlation < $self->{'metrics'}{'minCorrelation'}
154 0 0 if defined $self->{'metrics'}{'minCosine'} and $cosine < $self->{'metrics'}{'minCosine'}
156 0 0 if defined $self->{'metrics'}{'minLaplace'} and $laplace < $self->{'metrics'}{'minLaplace'}
158 0 0 if defined $self->{'metrics'}{'minJaccard'} and $jaccard < $self->{'metrics'}{'minJaccard'}
164 0 0 if $conviction ne 'NaN'
186 0 0 if defined $self->{'limitRules'} and $self->{'rule'} == $self->{'limitRules'}
189 0 0 if ($self->{'messages'})
192 0 0 if (defined $self->{'associationRules'})
197 0 0 if defined $self->{'limitRules'} and $self->{'rule'} == $self->{'limitRules'} or defined $self->{'limitSubsets'} and $self->{'numberSubsets'} == $self->{'limitSubsets'}
198 0 0 if (scalar @frequentItemset >= $self->{'largeItemsetLength'} + 1)
206 0 0 if ($self->{'messages'}) { }
208 0 0 if $self->{'associationRules'}
212 0 0 if ($answer =~ /^y$/i) { }
220 0 0 if $self->{'associationRules'}
226 0 0 if ($self->{'output'})
227 0 0 if ($self->{'output'} == 1) { }
0 0 elsif ($self->{'output'} == 2) { }
237 0 0 if ($self->{'messages'})
240 0 0 unless open FILE, ">$self->{'pathOutputFiles'}output_large_itemset_length_$self->{'largeItemsetLength'}.txt"
246 0 0 if defined $self->{'metrics'}{"min$metric"}
288 0 0 if ($self->{'messages'})
291 0 0 unless my $workbook = 'Excel::Writer::XLSX'->new("$self->{'pathOutputFiles'}output_large_itemset_length_$self->{'largeItemsetLength'}.xlsx")
298 0 0 if defined $self->{'metrics'}{"min$metric"}
306 0 0 if defined $self->{'metrics'}{'minLift'}
307 0 0 if defined $self->{'metrics'}{'minLeverage'}
308 0 0 if defined $self->{'metrics'}{'minConviction'}
309 0 0 if defined $self->{'metrics'}{'minCoverage'}
310 0 0 if defined $self->{'metrics'}{'minCorrelation'}
311 0 0 if defined $self->{'metrics'}{'minCosine'}
312 0 0 if defined $self->{'metrics'}{'minLaplace'}
313 0 0 if defined $self->{'metrics'}{'minJaccard'}
317 0 0 if defined $self->{'metrics'}{'minLift'}
318 0 0 if defined $self->{'metrics'}{'minLeverage'}
319 0 0 if defined $self->{'metrics'}{'minConviction'}
320 0 0 if defined $self->{'metrics'}{'minCoverage'}
321 0 0 if defined $self->{'metrics'}{'minCorrelation'}
322 0 0 if defined $self->{'metrics'}{'minCosine'}
323 0 0 if defined $self->{'metrics'}{'minLaplace'}
324 0 0 if defined $self->{'metrics'}{'minJaccard'}