Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lesson 5: numpy.polyfit() is part of the old API, should rewrite this portion #20

Open
labarba opened this issue Feb 19, 2024 · 0 comments

Comments

@labarba
Copy link
Member

labarba commented Feb 19, 2024

We are using numpy.polyfit(), which is now described as "part of the old polynomial API"—NumPy 1.4 introduced the numpy.polynomial package, and the old numpy.poly1d class is considered legacy.

According to the transition guide, we would instead use the Polynomial class.

The new API has significant differences including the ordering of the coefficients for the polynomial expressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant