Condition Coverage

blib/lib/Algorithm/Classifier/IsolationForest/Online.pm
Criterion Covered Total %
condition 84 124 67.7


and 3 conditions

line !l l&&!r l&&r condition
293 9 0 8 $args{'use_c'} && $Algorithm::Classifier::IsolationForest::HAS_C
297 0 0 1 $args{'use_openmp'} && $Algorithm::Classifier::IsolationForest::HAS_OPENMP
328 126 16 0 defined $self->{$doc} and ref $self->{$doc}
341 1 0 3 ref $self->{'feature_names'} eq "ARRAY" and @{$self->{'feature_names'};}
351 6 60 1 $self->{'window_size'} and $self->{'window_size'} < $self->{'max_leaf_samples'}
353 1 2 63 $self->{'subsample'} > 0 and $self->{'subsample'} <= 1
356 1 1 8 $self->{'contamination'} > 0 && $self->{'contamination'} <= 0.5
53 8 2 defined $self->{'contamination'} and not $self->{'contamination'} > 0 && $self->{'contamination'} <= 0.5
385 0 0 262 ref $data eq "ARRAY" and @$data
440 0 0 35 ref $data eq "ARRAY" and @$data
587 0 2 14 $threshold > 0 and $threshold < 1
2 5 9 $threshold > 0 and $threshold < 1 and $self->_ensure_c_trees
644 0 0 4 $threshold > 0 and $threshold < 1
0 1 3 $threshold > 0 and $threshold < 1 and $self->_ensure_c_trees
702 0 0 3 $threshold > 0 and $threshold < 1
0 1 2 $threshold > 0 and $threshold < 1 and $self->_ensure_c_trees
745 0 1 6 ref $rows eq "ARRAY" and @$rows
913 0 0 18 ref $payload eq "HASH" and defined $payload->{'format'}
0 2 16 ref $payload eq "HASH" and defined $payload->{'format'} and $payload->{'format'} eq "Algorithm::Classifier::IsolationForest::Online"
945 0 0 16 ref $trees eq "ARRAY" and @$trees
1001 0 0 1 ref $self->{'feature_names'} eq "ARRAY" and @{$self->{'feature_names'};}
1008 0 0 1 ref $self->{'feature_descriptions'} eq "HASH" and %{$self->{'feature_descriptions'};}
1010 1 0 0 ref $self->{'mungers'} eq "HASH" and %{$self->{'mungers'};}
1065 0 0 16418 ref $row eq "ARRAY" and @$row
1152 39750 4721 2029 $sub < 1 and rand() >= $sub
1170 17930 3340 1490 $sub < 1 and rand() >= $sub
1216 22931 20981 449 $node->[1] >= $self->_split_threshold($depth) and $depth < $limit

or 2 conditions

line l !l condition
271 4 69 $args{'growth'} // "adaptive"
275 9 63 $args{'missing'} // "die"
285 51 1 $args{'window_size'} // 0
322 55 16 $args{'n_trees'} // 100
50 21 $args{'max_leaf_samples'} // 32
6 65 $args{'subsample'} // 1
915 16 0 $payload->{'params'} || {}
938 16 0 $p->{'window_size'} // 0
16 0 $p->{'growth'} // "adaptive"
16 0 $p->{'subsample'} // 1
16 0 $p->{'missing'} // "die"
16 0 $p->{'seen'} // 0
16 0 $payload->{'window'} // []
1028 1 0 $self->{'schema_version'} // 0
1 0 $self->{'schema_description'} // "(none recorded; describe this schema and bump schema_version)"
1084 1959 141 $_ // 0
1367 97554 672 $$x[$node->[4]] // 0

or 3 conditions

line l !l&&r !l&&!r condition
1247 869 29 449 $n < $self->_split_threshold($depth) or $depth >= $limit
1516 4 15 4 not defined $self->{'contamination'} or defined $self->{'threshold'}
19 0 4 not defined $self->{'contamination'} or defined $self->{'threshold'} or not @{$self->{'window'};}