|
6 | 6 | "source": [ |
7 | 7 | "# Optimizer Benchmark\n", |
8 | 8 | "\n", |
9 | | - "This notebook compares different optimization solvers from `furax_cs.optim` on the Rosenbrock function.\n", |
| 9 | + "This notebook compares different optimization solvers from `cadre` on the Rosenbrock function.\n", |
10 | 10 | "\n", |
11 | 11 | "## Test Matrix\n", |
12 | 12 | "\n", |
|
45 | 45 | "import jax.numpy as jnp\n", |
46 | 46 | "import matplotlib.pyplot as plt\n", |
47 | 47 | "import pandas as pd\n", |
48 | | - "from furax_cs.optim import minimize\n", |
| 48 | + "from cadre import minimize\n", |
49 | 49 | "\n", |
50 | 50 | "# Enable 64-bit precision\n", |
51 | 51 | "jax.config.update(\"jax_enable_x64\", True)" |
|
196 | 196 | "plt.show()" |
197 | 197 | ] |
198 | 198 | }, |
199 | | - { |
200 | | - "cell_type": "code", |
201 | | - "execution_count": 13, |
202 | | - "metadata": {}, |
203 | | - "outputs": [ |
204 | | - { |
205 | | - "data": { |
206 | | - "text/plain": [ |
207 | | - "Array([ 35.178079 , 839.05471775, 946.67697787, 1124.11267378,\n", |
208 | | - " 1344.27794419, 1591.60078999, 2023.58745027, 2241.40393647,\n", |
209 | | - " 2429.79396429, 2553.55842245], dtype=float64)" |
210 | | - ] |
211 | | - }, |
212 | | - "execution_count": 13, |
213 | | - "metadata": {}, |
214 | | - "output_type": "execute_result" |
215 | | - } |
216 | | - ], |
217 | | - "source": [ |
218 | | - "eigvals" |
219 | | - ] |
220 | | - }, |
221 | 199 | { |
222 | 200 | "cell_type": "code", |
223 | 201 | "execution_count": 36, |
|
255 | 233 | "plt.show()" |
256 | 234 | ] |
257 | 235 | }, |
258 | | - { |
259 | | - "cell_type": "code", |
260 | | - "execution_count": 32, |
261 | | - "metadata": {}, |
262 | | - "outputs": [ |
263 | | - { |
264 | | - "data": { |
265 | | - "text/plain": [ |
266 | | - "Array([[ 2., 0., 0., ..., 0., 0., 0.],\n", |
267 | | - " [ 0., 202., 0., ..., 0., 0., 0.],\n", |
268 | | - " [ 0., 0., 202., ..., 0., 0., 0.],\n", |
269 | | - " ...,\n", |
270 | | - " [ 0., 0., 0., ..., 202., 0., 0.],\n", |
271 | | - " [ 0., 0., 0., ..., 0., 202., 0.],\n", |
272 | | - " [ 0., 0., 0., ..., 0., 0., 200.]], dtype=float64)" |
273 | | - ] |
274 | | - }, |
275 | | - "execution_count": 32, |
276 | | - "metadata": {}, |
277 | | - "output_type": "execute_result" |
278 | | - } |
279 | | - ], |
280 | | - "source": [ |
281 | | - "H" |
282 | | - ] |
283 | | - }, |
284 | 236 | { |
285 | 237 | "cell_type": "code", |
286 | 238 | "execution_count": 13, |
|
0 commit comments