Commit 314bdad
authored
Adds JAX IDAKLU solver integration (#481)
* working commit, adds [jax] optional dependency to pybamm, example idaklu-jax solver
* adds experimental sub-directory, sync commit
* feat: adds Jax functionality via idaklu_jax solver, with example and benchmarks. Adds JaxSumSquaredError and JaxLogNormalLikelihood.
* Post merge fixes, update base_model solver property
* examples: update benchmarking script
* updts docstrings, jax arg to models, adds tests.
* add coverage, refactor BaseModel solver setter
* adds coverage
* convert BaseModel.calculate_sensitivites to property
* add changelog entry
* feat: removes Jax arg from BaseModel, BaseProblem.model is copied instance
* fix: cost shape for CMAES, adds example comments for jax solver
* fix: update model reparameterisation as model is now copied within BaseProblem()
* Merge branch 'develop' into jaxify-idaklu-implementation
# Conflicts:
# examples/notebooks/single_pulse_circuit_model.ipynb
* refactor: Jax implementation, FittingProblem.evaluate, adds Fisher Information to OptimisationResult
* refactor: Jax costs and add Jax-based evaluator
* refactor: update init structure
* tests: adds coverage
* adds coverage, updates jaxified solver for current pybamm bug
* Adds SciPyEvaluator, updates examples, tests.
* Adds coverage, updates evaluation, and improves integration between BaseCost & BaseJaxCost
* Upper pin BPX to <0.5
* refactor: changes post review
* refactor: updates to docstrings, general improvements
* tests: increment sigma01 parent a15f7c4 commit 314bdad
File tree
30 files changed
+909
-1546
lines changed- examples
- data
- notebooks/battery_parameterisation
- scripts
- comparison_examples
- getting_started
- pybop
- costs
- experimental
- models
- lithium_ion
- optimisers
- plot
- problems
- tests
- integration
- unit
- experimental
30 files changed
+909
-1546
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
0 commit comments