Start of fit_polynomial_bayes