Menu
×
×
Correct!
Exercise:Insert the missing method to find the univariate spline interpolation:
from scipy.interpolate import UnivariateSpline
import numpy as np
xs = np.arange(10)
ys = xs**2 + np.sin(xs) + 1
interp_func = UnivariateSpline(xs, ys)
Not CorrectClick here to try again. Correct!Next ❯from scipy.interpolate importimport numpy as np xs = np.arange(10) ys = xs**2 + np.sin(xs) + 1 interp_func = (xs, ys) |