def _validate_counts_vector(counts, suppress_cast=False):
    counts = np.asarray(counts)

    if not suppress_cast:
        counts = counts.astype(int, casting='safe', copy=False)

    if counts.ndim != 1:
        raise ValueError("Only 1-D vectors are supported.")
    elif (counts < 0).any():
        raise ValueError("Counts vector cannot contain negative values.")

    return counts
Updates an evaluation.
dataset/ETHPy150Open biocore/scikit-bio/skbio/diversity/_util.py/_validate_counts_vector--crossover with--dataset/ETHPy150Open bigmlcom/python/bigml/evaluationhandler.py/EvaluationHandler.update_evaluation