if weights is not None:
        assert_equal(scores.shape[1], weights.shape[1])

    # equal weights if not set
    else: