| line |
true |
false |
branch |
|
111
|
1 |
38 |
unless $mode eq "axis" or $mode eq "extended" |
|
114
|
20 |
18 |
if (defined $args{'seed'}) |
|
132
|
1 |
37 |
unless $self->{'n_trees'} >= 1 |
|
133
|
1 |
36 |
unless $self->{'sample_size'} >= 1 |
|
135
|
1 |
35 |
if defined $self->{'extension_level'} and $self->{'extension_level'} < 0 |
|
138
|
3 |
32 |
if defined $self->{'contamination'} and not $self->{'contamination'} > 0 && $self->{'contamination'} <= 0.5 |
|
201
|
3 |
21 |
unless ref $data eq "ARRAY" and @$data |
|
204
|
2 |
19 |
unless ref $data->[0] eq "ARRAY" and @{$data->[0];} |
|
216
|
6 |
13 |
if ($self->{'mode'} eq 'extended') { } |
|
221
|
2 |
4 |
defined $self->{'extension_level'} ? : |
|
222
|
0 |
6 |
if $ext < 0 |
|
223
|
1 |
5 |
if $ext > $max_ext |
|
234
|
0 |
19 |
defined $self->{'max_depth'} ? : |
|
235
|
0 |
19 |
if $limit < 1 |
|
238
|
19 |
0 |
if defined $self->{'seed'} |
|
252
|
3 |
16 |
if (defined $self->{'contamination'}) |
|
257
|
0 |
3 |
if $k < 1 |
|
258
|
0 |
3 |
if $k > $n_pts |
|
259
|
3 |
0 |
$k < $n_pts ? : |
|
321
|
3 |
5 |
defined $self->{'threshold'} ? : |
|
|
3 |
8 |
defined $threshold ? : |
|
323
|
306 |
801 |
$_ >= $threshold ? : |
|
360
|
3042 |
0 |
$c > 0 ? : |
|
388
|
0 |
0 |
defined $self->{'threshold'} ? : |
|
|
0 |
0 |
defined $threshold ? : |
|
393
|
0 |
0 |
if ($score >= $threshold) { } |
|
452
|
1 |
3 |
unless ref $payload eq "HASH" and defined $payload->{'format'} and $payload->{'format'} eq "Algorithm::Classifier::IsolationForest" |
|
471
|
1 |
2 |
unless @{$self->{'trees'};} |
|
476
|
2 |
0 |
if defined $self->{'psi_used'} |
|
536
|
36933 |
200978 |
if $n <= 1 |
|
537
|
13178 |
187800 |
if $n == 2 |
|
582
|
25138 |
24391 |
if $depth >= $limit or $size <= 1 |
|
592
|
111563 |
1861720 |
if not defined $lo[$f] or $v < $lo[$f] |
|
593
|
112462 |
1860821 |
if not defined $hi[$f] or $v > $hi[$f] |
|
601
|
0 |
24391 |
unless @varying |
|
604
|
4441 |
19950 |
$self->{'mode'} eq 'extended' ? : |
|
624
|
393279 |
391334 |
if ($row->[$attr] < $split) { } |
|
638
|
234 |
4207 |
if $active > scalar @$varying |
|
661
|
97910 |
102713 |
if ($dot <= $b) { } |
|
682
|
1544332 |
190019 |
if (exists $node->{'attr'}) { } |
|
690
|
866729 |
867622 |
$left ? : |
|
699
|
4 |
33 |
unless ref $self->{'trees'} eq "ARRAY" and @{$self->{'trees'};} |