def plot_preds(
    training_data_x: np.array,
    predictions: np.array,
    col_x: np.array,
    col_y: np.array,
    cola_name: str,
    colb_name: str,
) -> plt.plot:
    xsort = training_data_x.copy()
    xsort.sort(axis=0)
    plt.scatter(col_x, col_y, color="blue")
    plt.plot(
        xsort[:, 1],
        predictions[training_data_x[:, 1].argsort(0)],
        color="yellow",
        linewidth=5,
    )
    plt.title("Local Weighted Regression")
    plt.xlabel(cola_name)
    plt.ylabel(colb_name)
    plt.show()