From 67ac239f8cbede87a0db9951cf0d4aa18ef806da Mon Sep 17 00:00:00 2001 From: neeratyoy Date: Fri, 22 Oct 2021 17:06:01 +0200 Subject: [PATCH] Minor example edit to suggest docstrings --- examples/00_interfacing_DEHB.ipynb | 51 ++++++++++++++++++------------ 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/examples/00_interfacing_DEHB.ipynb b/examples/00_interfacing_DEHB.ipynb index e9c4b77..00eb84a 100644 --- a/examples/00_interfacing_DEHB.ipynb +++ b/examples/00_interfacing_DEHB.ipynb @@ -172,7 +172,7 @@ "data": { "text/plain": [ "Configuration:\n", - " x0, Value: 6.3793522646424785" + " x0, Value: 3.716302229868112" ] }, "execution_count": 5, @@ -257,6 +257,15 @@ "# but can be tuned as desired" ] }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": {}, + "outputs": [], + "source": [ + "?dehb.run" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -267,7 +276,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 9, "metadata": {}, "outputs": [ { @@ -275,7 +284,7 @@ "output_type": "stream", "text": [ "Configuration:\n", - " x0, Value: 4.647994905980703\n", + " x0, Value: 4.060258498267547\n", "\n" ] } @@ -294,21 +303,21 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 10, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "2021-03-22 17:53:27.292 | INFO | dehb.optimizers.dehb:reset:102 - \n", + "2021-10-22 14:45:56.117 | INFO | dehb.optimizers.dehb:reset:107 - \n", "\n", - "RESET at 03/22/21 17:53:27 CET\n", + "RESET at 10/22/21 14:45:56 CEST\n", "\n", "\n", "(Configuration:\n", - " x0, Value: 3.5500062657482494\n", - ", 0.04514887709783266)\n" + " x0, Value: 3.724555206841792\n", + ", 0.0938589687572785)\n" ] } ], @@ -329,21 +338,21 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 11, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "2021-03-22 17:53:29.658 | INFO | dehb.optimizers.dehb:reset:102 - \n", + "2021-10-22 14:45:58.567 | INFO | dehb.optimizers.dehb:reset:107 - \n", "\n", - "RESET at 03/22/21 17:53:29 CET\n", + "RESET at 10/22/21 14:45:58 CEST\n", "\n", "\n", "(Configuration:\n", - " x0, Value: 6.898789003516494\n", - ", 0.0068207743261361475)\n" + " x0, Value: 4.341818535733585\n", + ", 3.653636256717441e-05)\n" ] } ], @@ -367,7 +376,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 12, "metadata": {}, "outputs": [ { @@ -375,8 +384,8 @@ "output_type": "stream", "text": [ "(Configuration:\n", - " x0, Value: 6.695906943430258\n", - ", 0.015266398519239388)\n" + " x0, Value: 4.610766436763522\n", + ", 0.007774399252232556)\n" ] } ], @@ -399,7 +408,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 13, "metadata": {}, "outputs": [ { @@ -407,7 +416,7 @@ "output_type": "stream", "text": [ "Configuration:\n", - " x0, Value: 6.695906943430258\n", + " x0, Value: 4.610766436763522\n", "\n" ] } @@ -418,16 +427,16 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 14, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "0.015266398519239388 0.015266398519239388\n", + "0.007774399252232556 0.007774399252232556\n", "Configuration:\n", - " x0, Value: 6.695906943430258\n", + " x0, Value: 4.610766436763522\n", "\n" ] }