diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aae266a46..f2b04d280 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -47,7 +47,7 @@ repos: additional_dependencies: [black==21.12b0] types: [rst] - repo: https://github.com/psf/black - rev: 22.1.0 + rev: 22.3.0 hooks: - id: black types: [python] @@ -75,7 +75,7 @@ repos: rev: 1.3.1 hooks: - id: nbqa-black - additional_dependencies: [black==20.8b1] + additional_dependencies: [black] - id: nbqa-pyupgrade additional_dependencies: [pyupgrade==2.7.3] exclude: 'inference|differentiation|miscellaneous' diff --git a/CHANGES.rst b/CHANGES.rst index 582aeff6e..0d10d55d6 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,21 @@ chronological order. We follow `semantic versioning `_ and releases are available on `Anaconda.org `_. +0.2.3 +----- + +- :gh:`295` Fixes a small bug in estimation_table (:ghuser:`mpetrosian`). +- :gh:`286` Adds pytree support for first and second derivative (:ghuser:`timmens`). +- :gh:`285` Allows to use estimation functions with external optimization + (:ghuser:`janosg`). +- :gh:`283` Adds fast solvers for quadratic trustregion subproblems (:ghuser:`segsell`). +- :gh:`282` Vastly improves estimation tables (:ghuser:`mpetrosian`). +- :gh:`281` Adds some tools to work with pytrees (:ghuser:`janosg` + and :ghuser:`timmens`). +- :gh:`278` adds Estimagic Enhancement Proposal 1 for the use of Pytrees in Estimagic + (:ghuser:`janosg`) + + 0.2.2 ----- diff --git a/docs/source/getting_started/why_optimization_is_hard.ipynb b/docs/source/getting_started/why_optimization_is_hard.ipynb index b7150bebc..33a9a6162 100644 --- a/docs/source/getting_started/why_optimization_is_hard.ipynb +++ b/docs/source/getting_started/why_optimization_is_hard.ipynb @@ -91,7 +91,7 @@ ], "source": [ "dimensions = np.arange(10) + 1\n", - "n_evals = 100 ** dimensions\n", + "n_evals = 100**dimensions\n", "sns.lineplot(dimensions, n_evals)" ] }, @@ -276,7 +276,7 @@ "grid = np.linspace(-1, 1, 1000)\n", "sns.lineplot(\n", " x=grid,\n", - " y=(grid ** 2) + np.random.normal(scale=0.01, size=len(grid)),\n", + " y=(grid**2) + np.random.normal(scale=0.01, size=len(grid)),\n", ")" ] }, diff --git a/docs/source/how_to_guides/differentiation/how_to_calculate_first_derivatives.ipynb b/docs/source/how_to_guides/differentiation/how_to_calculate_first_derivatives.ipynb index 15f0859b5..424cb8170 100644 --- a/docs/source/how_to_guides/differentiation/how_to_calculate_first_derivatives.ipynb +++ b/docs/source/how_to_guides/differentiation/how_to_calculate_first_derivatives.ipynb @@ -40,7 +40,7 @@ "outputs": [], "source": [ "def f(x):\n", - " return x ** 2" + " return x**2" ] }, { @@ -125,7 +125,7 @@ "outputs": [], "source": [ "def f1(x):\n", - " return np.sum(x ** 2)\n", + " return np.sum(x**2)\n", "\n", "\n", "def f2(x, M):\n",