From 0b87377c6d159751bf5f405b1692e57e38543bdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Henning?= <post@soeren-henning.de> Date: Fri, 17 Apr 2020 23:22:57 +0200 Subject: [PATCH] Clean up --- execution/scalability-graph.ipynb | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/execution/scalability-graph.ipynb b/execution/scalability-graph.ipynb index 1aab94589..31fb5c2c9 100644 --- a/execution/scalability-graph.ipynb +++ b/execution/scalability-graph.ipynb @@ -55,6 +55,18 @@ "os.getcwd()" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "exp_id = 35\n", + "warmup_sec = 60\n", + "threshold = 2000 #slope\n", + "" + ] + }, { "cell_type": "code", "execution_count": null, @@ -66,7 +78,7 @@ }, "outputs": [], "source": [ - "exp_id = 9\n", + "#exp_id = 35\n", "\n", "#os.chdir(\"./results-new\")\n", "\n", @@ -81,8 +93,12 @@ "\n", " df = pd.read_csv(filename)\n", " input = df.loc[df['topic'] == \"input\"]\n", - " input['sec_start'] = input.loc[0:, 'timestamp'] - input.at[0, 'timestamp']\n", - " regress = input.loc[input['sec_start'] >= 60] # Warm-Up\n", + " #print(input)\n", + " input['sec_start'] = input.loc[0:, 'timestamp'] - input.iloc[0]['timestamp']\n", + " #print(input)\n", + " #print(input.iloc[0, 'timestamp'])\n", + " regress = input.loc[input['sec_start'] >= warmup_sec] # Warm-Up\n", + " #regress = input\n", "\n", " #input.plot(kind='line',x='timestamp',y='value',color='red')\n", " #plt.show()\n", @@ -119,7 +135,7 @@ "metadata": {}, "outputs": [], "source": [ - "threshold = 10\n", + "#threshold = 1000\n", "\n", "# Set to true if the trend line has a slope less than \n", "runs[\"suitable\"] = runs.apply(lambda row: row['trend_slope'] < threshold, axis=1)\n", -- GitLab