openmainframeproject / ade

ADE detects anomalous time slices and messages in Linux logs (either RFC3164 or RFC5424 format) using statistical learning.
https://www.openmainframeproject.org/projects/anomaly-detection-engine-for-linux-logs-ade
GNU General Public License v3.0
51 stars 34 forks source link

Regression test failure - RC 99 (poisson mean comparison fails) #46

Open caffreyj opened 8 years ago

caffreyj commented 8 years ago

Random comparison of interval_nn,xml files when calculating the Poisson mean (Expected text value '0.02097365841662402' but was '0.02097365841662424'). Note the difference in value is clearly insignificant - should be rounding the value before making the comparison

Message generated Comparing /home/caffreyj/Ade_test_develop/ade-1.0.3/baseline/output/sys1.openmainframe.org/20151130/intervals/interval_48.xml to output/regtest20160907112433/continuous/sys1.openmainframe.org/20151130/intervals/interval_48.xml \ Difference Found: Expected text value '0.02097365841662402' but was '0.02097365841662424' - comparing <poisson ...>0.02097365841662402 at /interval[1]/interval_message[7]/poisson[1]/text()[1] to <poisson ...>0.02097365841662424 at /interval[1]/interval_message[7]/poisson[1]/text()[1]

XML files are not similar

caffreyj commented 8 years ago

Fix looks to be to reduce the level of precision when calculating the the Poisson mean from double to normal precision