diff --git a/execution/scalability-graph-finish.ipynb b/execution/scalability-graph-finish.ipynb new file mode 100644 index 0000000000000000000000000000000000000000..e46f4b6769a9a8ab4ef93ea713128e9641d8f88b --- /dev/null +++ b/execution/scalability-graph-finish.ipynb @@ -0,0 +1,106 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "import requests\n", + "from datetime import datetime, timedelta, timezone\n", + "import pandas as pd\n", + "import matplotlib.pyplot as plt" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "exp_id = 1025\n", + "warmup_sec = 60\n", + "warmup_partitions_sec = 120\n", + "threshold = 2000 #slope\n", + "directory = '../results-inst'\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "df1 = pd.read_csv(os.path.join(directory, 'exp1025_min-suitable-instances.csv')).set_index('dim_value').rename(columns={\"instances\": \"1025\"})\n", + "df2 = pd.read_csv(os.path.join(directory, 'exp1003_min-suitable-instances.csv')).set_index('dim_value').rename(columns={\"instances\": \"1003\"})\n", + "\n", + "#df1.join(df2, on='instances')\n", + "df = df1.join(df2, how='outer')\n", + "\n", + "df" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "plt.style.use('ggplot')\n", + "plt.rcParams['axes.facecolor']='w'\n", + "plt.rcParams['axes.edgecolor']='555555'\n", + "#plt.rcParams['ytick.color']='black'\n", + "plt.rcParams['grid.color']='dddddd'\n", + "plt.rcParams['axes.spines.top']='false'\n", + "plt.rcParams['axes.spines.right']='false'\n", + "plt.rcParams['legend.frameon']='true'\n", + "plt.rcParams['legend.framealpha']='1'\n", + "plt.rcParams['legend.edgecolor']='1'\n", + "plt.rcParams['legend.borderpad']='1'\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "plt.figure() \n", + "ax = df.plot(kind='line', marker='o')\n", + "#ax = df.plot(kind='line',x='dim_value', legend=False, use_index=True)\n", + "ax.set_ylabel('instances')\n", + "ax.set_xlabel('data sources')\n", + "ax.set_ylim(ymin=0)\n", + "#ax.set_xlim(xmin=0)\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "language_info": { + "name": "python", + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "version": "3.7.0-final" + }, + "orig_nbformat": 2, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "npconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": 3, + "kernelspec": { + "name": "python37064bitvenvvenv469ea2e0a7854dc7b367eee45386afee", + "display_name": "Python 3.7.0 64-bit ('.venv': venv)" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} \ No newline at end of file diff --git a/execution/scalability-graph.ipynb b/execution/scalability-graph.ipynb index 401cfae096a9caf726c266e17c6d255ebcbd4301..752c0bebc901e756e18d4b11fc0d8ae02cddcf13 100644 --- a/execution/scalability-graph.ipynb +++ b/execution/scalability-graph.ipynb @@ -38,11 +38,11 @@ "metadata": {}, "outputs": [], "source": [ - "exp_id = 1009\n", + "exp_id = 1003\n", "warmup_sec = 60\n", "warmup_partitions_sec = 120\n", "threshold = 2000 #slope\n", - "directory = './results-final'\n" + "directory = '../results'\n" ] }, { @@ -238,6 +238,15 @@ "min_suitable_instances" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "min_suitable_instances.to_csv(f'../results-inst/exp{exp_id}_min-suitable-instances.csv', index=False)" + ] + }, { "cell_type": "code", "execution_count": null,