Closed erkankarabulut closed 8 months ago
This pull request is relevant to the following issue: https://github.com/firefly-cpp/NiaARM/issues/112.
In rule.py, while calculating acc as part of amplitude rule quality criterion, the code throws a division by zero warning if the feature_max == feature_min.
rule.py
acc
amplitude
division by zero
feature_max == feature_min
In that case, acc is increased by one, instead of the division.
Thanks, @erkankarabulut
This pull request is relevant to the following issue: https://github.com/firefly-cpp/NiaARM/issues/112.
In
rule.py
, while calculatingacc
as part ofamplitude
rule quality criterion, the code throws adivision by zero
warning if thefeature_max == feature_min
.In that case,
acc
is increased by one, instead of the division.