Skip to content

Change of deprecated np.infty#18

Open
osorensen wants to merge 2 commits intosdascoli:mainfrom
osorensen:main
Open

Change of deprecated np.infty#18
osorensen wants to merge 2 commits intosdascoli:mainfrom
osorensen:main

Conversation

@osorensen
Copy link

np.infty has been deprecated in NumPy 2.0, so when using NumPy >=2.0 there will be errors. For me it happens in the following code block in your examply Jupyter Notebook, where the results of Figure 1 are reproduced.

for equation in equations:
    plot_prediction(dstr, equation, seed=0, noise=.05, subsampling=.5)

This PR is a simple find-and-replace which fixes the issue.

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

Successfully merging this pull request may close these issues.

1 participant