Add python and scipy installation checks to tutorial notebooks
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 349
- Forks
- 35
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the tutorial notebook for “Fitting a mean function” and reproduce the minimisation cell that raises the scipy.optimize error. Inspect how the notebook currently handles dependencies, then add the requested Python and SciPy installation checks and verify the notebook runs successfully, including on Colab.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100