It's actually going to be a sign ∈ {-1, 1}:

    sign = 1 if greater_is_better else -1

(Line 160.)