def predict_from_fit(fit, samples):
    """Uses a polynomial regression coefficients to compute predictions

    Args:
        fit (numpy.ndarray[N]): (N-1)th order polynomial fit coefficients
        samples (numpy.ndarray[K]): input samples

    Returns:
        numpy.ndarray[K]: output predictions
    """

    return sum(fit[len(fit) - idx - 1] * samples ** idx if idx > 0 else fit[-1]
               for idx in range(len(fit)))