-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add python and scipy installation checks to tutorial notebooks #155
Comments
FWIW, I cannot reproduce the problem, it works fine for me, same JAX, same jaxopt. |
No. As I mention, I also just opened the notebook on colab and get the same result. It works fine if I change the solver, e.g., jaxopt.BFGS |
Can reproduce:
Also,
On my machine,
(Yes, I set up a new env for this). What is your scipy stack? |
Hi, turns out my jupyter kernel was picking the conda base environment, rather than the virtual env. This meant that it was using python 3.8, scipy1.7 as default. Not sure why... anyway, looks like the issue is probably due to scipy version. Thanks for the help! |
Sorry to close/reopen, thought it might be relevant to add something to the tutroial notebooks to install the correct python/scipy version for using on colab. Changed the issue title to reflect this... feel free to finese if it's not descriptive enough. I can also fix and open a pull request if desired. |
Thanks! Yeah - this looks to be an incompatibility between try:
import jaxopt
except ImportError:
%pip install -q jaxopt with try:
import jaxopt
except ImportError:
%pip install -q -U jaxopt scipy in the notebooks. I'm not too fussed about documenting this here since it's really a Thanks! |
Hi,
I am trying to run the code given in the tutorial Fitting a mean function.
However, when I get to the minimisation part:
soln = solver.run(jax.tree_util.tree_map(jnp.asarray, params))
it gives me the following error:
AttributeError: module 'scipy' has no attribute 'optimize'
Any chance you've come across this before?
I am using Jax v0.4.4, jaxopt v0.6.
Thanks.
Edit: I have also tried launching the notebook (from the tinygp webpage) on colab and the same error occurs.
The text was updated successfully, but these errors were encountered: