This is an archive of the discontinued LLVM Phabricator instance.

LNT: Fix large Mann-Whitney U Test.
ClosedPublic

Authored by tnfchris on Dec 11 2020, 5:57 AM.

Details

Reviewers
thopre
kongyi
Summary

The call to mannwhitneyu_large returns a tuple of two results (the U
statistic and the one-sided p value). This causes a crash when running
with Python 3 due to the comparison between a float and a tuple, however
appears to silently fail with Python 2 which is possibly why it was not
caught sooner.

Since we only care about the one-sided p value, just take that directly.

Diff Detail

Event Timeline

tnfchris requested review of this revision.Dec 11 2020, 5:57 AM
tnfchris created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 11 2020, 5:57 AM
thopre accepted this revision.Dec 11 2020, 6:32 AM

LGTM

This revision is now accepted and ready to land.Dec 11 2020, 6:32 AM
tnfchris closed this revision.Dec 13 2020, 6:18 AM