Browse code

change plots settings in the example notebook

Bas Nijholt authored on 20/02/2018 17:03:49
Showing 1 changed files
... ...
@@ -440,8 +440,17 @@
440 440
    "outputs": [],
441 441
    "source": [
442 442
     "learner = adaptive.Learner1D(f_levels, bounds=(-1, 1))\n",
443
-    "runner = adaptive.Runner(learner, goal=lambda l: l.loss() < 0.05)\n",
444
-    "runner.live_plot()"
443
+    "runner = adaptive.Runner(learner, goal=lambda l: l.loss() < 0.01)\n",
444
+    "runner.live_info()"
445
+   ]
446
+  },
447
+  {
448
+   "cell_type": "code",
449
+   "execution_count": null,
450
+   "metadata": {},
451
+   "outputs": [],
452
+   "source": [
453
+    "runner.live_plot(update_interval=0.1)"
445 454
    ]
446 455
   },
447 456
   {
... ...
@@ -860,7 +869,7 @@
860 869
    "metadata": {},
861 870
    "outputs": [],
862 871
    "source": [
863
-    "learner = adaptive.Learner1D(f, bounds=(-1, 1))\n",
872
+    "learner = adaptive.Learner1D(partial(f, wait=False), bounds=(-1, 1))\n",
864 873
     "adaptive.BlockingRunner(learner, goal=lambda l: l.loss() < 0.005)\n",
865 874
     "# This will only get run after the runner has finished\n",
866 875
     "learner.plot()"