@scope.define_pure
def bincount(x, weights=None, minlength=None):
    if np_versions[0] == 1 and 6 < np_versions[1]:
        # -- np.bincount doesn't have minlength arg
        return _bincount_slow(x, weights, minlength)
    else:
        if np.asarray(x).size:
            return np.bincount(x, weights, minlength)
        else:
            # -- currently numpy rejects this case,
            #    but it seems sensible enough to me.
            return np.zeros(minlength, dtype='int')
dataset/ETHPy150Open hyperopt/hyperopt/hyperopt/pyll/base.py/bincount/swapped operands of `<`