blib/lib/AI/Categorizer/Learner/KNN.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 15 | 20 | 75.0 |
line | true | false | branch |
---|---|---|---|
26 | 0 | 0 | if @_ |
34 | 0 | 2 | if ($f_class->can('all_features')) |
49 | 0 | 16 | if ($$self{'max_instances'}) { } |
60 | 0 | 64 | if $self->verbose > 1 |
67 | 16 | 16 | $$self{'knn_weighting'} eq 'score' ? : |
92 | 15 | 55 | unless @{$$self{'entries'};} < $$self{'size'} or $score > $$self{'entries'}[0]{'score'} |
96 | 17 | 38 | if (not @{$$self{'entries'};}) { } |
18 | 20 | elsif ($score > $$self{'entries'}[-1]{'score'}) { } | |
102 | 17 | 12 | if $score < $$self{'entries'}[$i]{'score'} |
106 | 20 | 35 | if @{$$self{'entries'};} > $$self{'size'} |