SciPy - Curve Fitting and Regression
Analyze the output of this code:
import numpy as np
from scipy.optimize import curve_fit
def cubic(x, a, b, c, d):
return a*x**3 + b*x**2 + c*x + d
x_points = np.array([0, 1, 2, 3])
y_points = np.array([1, 6, 17, 34])
params, _ = curve_fit(cubic, x_points, y_points)
print(np.round(params, 2))What will be printed?