def polynom_approximate(x, y, polynom_degree): # Get polynom params polynom = sp.polyfit(x, y, polynom_degree) return polynom # Model error calculate