def y_fitted_line(m_val, b_val, vec_x):
    """
    This function returns the fitted baseline constructed
    by coeffecient m and b and x values.
    ----------
    Parameters
    ----------
    x : list
        Output of the split vector function. x value of the input.
    m : int/float
        inclination of the baseline.
    b : int/float
        y intercept of the baseline.
    -------
    Returns
    -------
    y_base: list
            List of constructed y_labels.
    """
    y_base = []
    for i in vec_x:
        y_val = m_val * i + b_val
        y_base.append(y_val)
    return y_base