Skip to content

Commit 27453ef

Browse files
authored
Merge branch 'master' into i-1067-generic-stochastic-model
2 parents d14667d + edbf7c1 commit 27453ef

33 files changed

+1203
-807
lines changed

CHANGELOG.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,28 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## [Unreleased]
5+
## Unreleased
66

77
### Added
88
- [#1417](https://github.com/pints-team/pints/pull/1417) Added a module `toy.stochastic` for stochastic models. In particular, `toy.stochastic.MarkovJumpModel` implements Gillespie's algorithm for easier future implementation of stochastic models.
9+
- [#1420](https://github.com/pints-team/pints/pull/1420) The `Optimiser` class now distinguishes between a best-visited point (`x_best`, with score `f_best`) and a best-guessed point (`x_guessed`, with approximate score `f_guessed`). For most optimisers, the two values are equivalent. The `OptimisationController` still tracks `x_best` and `f_best` by default, but this can be modified using the methods `set_f_guessed_tracking` and `f_guessed_tracking`.
10+
11+
### Changed
12+
- [#1424](https://github.com/pints-team/pints/pull/1424) Fixed a bug in PSO that caused it to use more particles than advertised.
13+
- [#1424](https://github.com/pints-team/pints/pull/1424) xNES, SNES, PSO, and BareCMAES no longer use a `TriangleWaveTransform` to handle rectangular boundaries (this was found to lead to optimisers diverging in some cases).
14+
15+
### Deprecated
16+
17+
### Removed
18+
- [#1424](https://github.com/pints-team/pints/pull/1424) Removed the `TriangleWaveTransform` class previously used in some optimisers.
19+
20+
### Fixed
21+
22+
23+
## [0.4.0] - 2021-12-07
24+
25+
### Added
26+
- [#1409](https://github.com/pints-team/pints/pull/1409) The `OptimisationController` now accepts a callback function that will be called at every iteration; this can be used for easier customisation or visualisation of the optimiser trajectory.
927
- [#1383](https://github.com/pints-team/pints/pull/1383) Added a method `toy.TwistedGaussianDistribution.untwist` that turns samples from this distribution into samples from a multivariate Gaussian.
1028
- [#1322](https://github.com/pints-team/pints/pull/1322) Added a method `sample_initial_points` that allows users to generate random points with finite metrics (either log-probabilities or error measures) to use as starting points for sampling or optimisation.
1129
- [#1243](https://github.com/pints-team/pints/pull/1243) Added testing for Python 3.9.
@@ -21,6 +39,7 @@ All notable changes to this project will be documented in this file.
2139
- [#1025](https://github.com/pints-team/pints/pull/1025) Added a stochastic logistic growth problem for use with ABC.
2240

2341
### Changed
42+
- [#1420](https://github.com/pints-team/pints/pull/1420) The `OptimisationController` now logs a best and a current score.
2443
- [#1375](https://github.com/pints-team/pints/pull/1375) Changed all arguments called `transform` to `transformation` for consistency.
2544
- [#1365](https://github.com/pints-team/pints/pull/1365) Dropped support for Python 2.7. PINTS now requires Python 3.5 or higher.
2645
- [#1360](https://github.com/pints-team/pints/pull/1360) The `ParallelEvaluator` will now set a different (pre-determined) random seed for each task, ensuring tasks can use randomness, but results can be reproduced from run to run.
@@ -32,6 +51,7 @@ All notable changes to this project will be documented in this file.
3251
- [#1112](https://github.com/pints-team/pints/pull/1112) The `pints.Logger` can now deal with `None` being logged in place of a proper value.
3352

3453
### Deprecated
54+
- [#1420](https://github.com/pints-team/pints/pull/1420) The methods `pints.Optimisation.xbest()` and `fbest()` are deprecated in favour of `x_best()` and `f_best()`.
3555
- [#1201](https://github.com/pints-team/pints/pull/1201) The method `pints.rhat_all_params` was accidentally removed in 0.3.0, but is now back in deprecated form.
3656

3757
### Removed

docs/source/optimisers/boundary_transformations.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/optimisers/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ or the :class:`OptimisationController` class.
1616
running
1717
base_classes
1818
convenience_methods
19-
boundary_transformations
2019
cmaes_bare
2120
cmaes
2221
gradient_descent

examples/optimisation/ask-and-tell.ipynb

Lines changed: 173 additions & 48 deletions
Large diffs are not rendered by default.

examples/optimisation/cmaes.ipynb

Lines changed: 41 additions & 34 deletions
Large diffs are not rendered by default.

examples/optimisation/convenience.ipynb

Lines changed: 12 additions & 11 deletions
Large diffs are not rendered by default.

examples/optimisation/first-example.ipynb

Lines changed: 56 additions & 59 deletions
Large diffs are not rendered by default.

examples/optimisation/gradient-descent.ipynb

Lines changed: 40 additions & 42 deletions
Large diffs are not rendered by default.

examples/optimisation/multi-objective.ipynb

Lines changed: 24 additions & 20 deletions
Large diffs are not rendered by default.

examples/optimisation/nelder-mead.ipynb

Lines changed: 31 additions & 31 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)