    /**
     * Set labels to each observation according passed model.
     * <p>
     * NOTE: In-place operation.
     * </p>
     * @param ds The given labeled dataset.
     * @param mdl The given model.
     * @return Dataset with predicted labels.