SciPy - Curve Fitting and Regression
Consider the following code snippet:
import numpy as np
from scipy.optimize import curve_fit
def linear_model(x, m, c):
return m * x + c
x_vals = np.array([1, 2, 3, 4, 5])
y_vals = np.array([2.2, 4.0, 6.1, 7.9, 10.2])
params, covariance = curve_fit(linear_model, x_vals, y_vals)
print(np.round(params, 2))What will be the output of print(np.round(params, 2))?