plot-results.ipynb 187 KB
Newer Older
Jaime Arias's avatar
Jaime Arias committed
1
2
3
4
{
 "cells": [
  {
   "cell_type": "code",
5
   "execution_count": 1,
Jaime Arias's avatar
Jaime Arias committed
6
7
   "metadata": {},
   "outputs": [],
8
   "source": [
Jaime Arias's avatar
Jaime Arias committed
9
    "ZERO = 20e-5\n",
10
11
12
13
14
    "TIMEOUT = 10 * 60 # 10 minutes = 600 seconds"
   ]
  },
  {
   "cell_type": "code",
Jaime Arias's avatar
Jaime Arias committed
15
   "execution_count": 2,
16
17
   "metadata": {},
   "outputs": [],
Jaime Arias's avatar
Jaime Arias committed
18
19
   "source": [
    "import os\n",
Jaime Arias's avatar
Jaime Arias committed
20
21
    "import glob\n",
    "import re\n",
Jaime Arias's avatar
Jaime Arias committed
22
    "import pandas as pd\n",
Jaime Arias's avatar
Jaime Arias committed
23
    "import numpy as np\n",
Jaime Arias's avatar
Jaime Arias committed
24
25
26
27
    "import plotly.io as pio\n",
    "import plotly.express as px\n",
    "import plotly.graph_objs as go\n",
    "from itertools import combinations \n",
Jaime Arias's avatar
Jaime Arias committed
28
    "import plotly.figure_factory as ff\n",
Jaime Arias's avatar
Jaime Arias committed
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
    "from plotly.subplots import make_subplots\n",
    "\n",
    "# render figures in notebook\n",
    "pio.renderers.default = \"notebook_connected\"\n",
    "\n",
    "# templates figures\n",
    "px.defaults.template = \"simple_white\"\n",
    "pio.templates.default = \"simple_white\"\n",
    "\n",
    "# layout for all figures\n",
    "LAYOUT_FIGURES = dict(\n",
    "    autosize=False,\n",
    "    width = 500,\n",
    "    height = 500,\n",
    "    xaxis = dict(\n",
    "      constrain=\"domain\",\n",
    "      mirror=True,\n",
    "      showexponent=\"all\",\n",
    "      exponentformat=\"power\"\n",
    "    ),\n",
    "    yaxis = dict(\n",
    "      scaleanchor = \"x\",\n",
    "      scaleratio = 1,\n",
    "      mirror=True,\n",
    "      showexponent=\"all\",\n",
    "      exponentformat=\"power\"\n",
    "    ),\n",
    "    title = dict(\n",
    "      y = 0.9,\n",
    "      x = 0.5,\n",
    "      xanchor = 'center',\n",
    "      yanchor = 'top'\n",
    "    )\n",
    ")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Auxiliary Functions"
   ]
  },
  {
   "cell_type": "code",
Jaime Arias's avatar
Jaime Arias committed
74
   "execution_count": 3,
Jaime Arias's avatar
Jaime Arias committed
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
   "metadata": {},
   "outputs": [],
   "source": [
    "def create_folder(path):\n",
    "    \"\"\"Creates a folder if it does not exist\n",
    "    \n",
    "    Parameters\n",
    "    ----------\n",
    "    path : str\n",
    "        Path of the new folder\n",
    "    \n",
    "    Examples\n",
    "    --------\n",
    "    \n",
    "    >>> create_folder('./results')\n",
    "    \"\"\"\n",
    "    if not os.path.exists(path):\n",
    "        os.makedirs(path)"
   ]
  },
  {
   "cell_type": "code",
Jaime Arias's avatar
Jaime Arias committed
97
   "execution_count": 4,
Jaime Arias's avatar
Jaime Arias committed
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
   "metadata": {},
   "outputs": [],
   "source": [
    "def create_figure(df, model):\n",
    "    \"\"\"Creates a scatter figure showing the time taken by each tool to verify each property of a model\n",
    "    \n",
    "    Parameters\n",
    "    ----------\n",
    "    df : pandas.Dataframe\n",
    "        Dataframe containing the results of the experiments\n",
    "    model : string\n",
    "        model to be plotted\n",
    "    \n",
    "    Returns\n",
    "    -------\n",
    "    plotly.graph_objects.Figure\n",
    "        Scatter figure\n",
    "    \n",
    "    Examples\n",
    "    --------\n",
    "    \n",
    "    >>> import os\n",
    "    >>> import pandas as pd\n",
    "    >>> csv_file = os.path.join(\"results\", \"output.csv\")\n",
    "    >>> df = pd.read_csv(csv_file)\n",
    "    >>> fig = create_figure(df, 'philo10')\n",
    "    \"\"\"\n",
    "    model_df = df[df.model == model]\n",
    "\n",
    "    figure = px.scatter(model_df, \n",
    "                        x=\"formula\", y=\"time\",\n",
    "                        title=model, \n",
    "                        color=\"tool\", \n",
    "                        symbol_sequence=['x'])\n",
    "\n",
    "    figure.update_layout(yaxis_title=\"time (s)\", title=LAYOUT_FIGURES['title'])\n",
    "    return figure"
   ]
  },
  {
   "cell_type": "code",
Jaime Arias's avatar
Jaime Arias committed
139
   "execution_count": 30,
Jaime Arias's avatar
Jaime Arias committed
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
   "metadata": {},
   "outputs": [],
   "source": [
    "def get_axis_title(experiment, show_strategy=True):\n",
    "    \"\"\"Get the axis title of a figure depending on the experiment being plotted\n",
    "    \n",
    "    Parameters\n",
    "    ----------\n",
    "    experiment : str\n",
    "        String with the experiment information\n",
    "    show_strategy : bool, optional\n",
    "        Flag to show the information related to the strategy used by the tool\n",
    "    \n",
    "    Returns\n",
    "    -------\n",
    "    str\n",
    "        axis title\n",
    "        \n",
    "    Examples\n",
    "    --------\n",
    "    \n",
    "    >>> get_axis_title('pmc-sog_otfL_couv99-default_1_1', True)\n",
    "    pmc-sog (Lace, strategy: couv99-default, # cores: 1)\n",
    "    \"\"\"\n",
    "    information = experiment.split('_')\n",
    "    tool_name = information[0]\n",
    "    \n",
    "    info = []\n",
168
169
170
    "    library_dic = {\n",
    "        'otfL': 'Lace',\n",
    "        'otfP': 'Pthreads',\n",
171
    "        'otfC': 'Cthreads',\n",
Jaime Arias's avatar
Jaime Arias committed
172
    "        'otfPR': 'otfPR',\n",
173
    "        'otf': 'Hybrid'\n",
174
    "    }\n",
Jaime Arias's avatar
Jaime Arias committed
175
176
    "    \n",
    "    if (len(information) == 5):\n",
177
    "        info.append(library_dic[information[1]])\n",
Jaime Arias's avatar
Jaime Arias committed
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
    "\n",
    "    if (show_strategy):\n",
    "        info.append('strategy: {}'.format(information[-3]))\n",
    "\n",
    "    nb_nodes = int(information[-2])\n",
    "    if (nb_nodes > 1):\n",
    "        info.append('# nodes: {}'.format(nb_nodes))\n",
    "\n",
    "    info.append('# cores: {}'.format(information[-1]))\n",
    "\n",
    "    title = '{} ({})'.format(tool_name, ', '.join(info))\n",
    "    \n",
    "    return title"
   ]
  },
  {
   "cell_type": "code",
Jaime Arias's avatar
Jaime Arias committed
195
   "execution_count": 6,
196
197
198
   "metadata": {},
   "outputs": [],
   "source": [
Jaime Arias's avatar
Jaime Arias committed
199
200
    "def filter_errors(df_exp1, df_exp2):\n",
    "    \"\"\"Returns dataframes of specific experiments without errors\"\"\"\n",
Jaime Arias's avatar
Jaime Arias committed
201
    "    \n",
Jaime Arias's avatar
Jaime Arias committed
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
    "    nan_1 = df_exp1[df_exp1.isna().any(axis=1)].index\n",
    "    nan_2 = df_exp2[df_exp2.isna().any(axis=1)].index\n",
    "\n",
    "    df_exp1 = df_exp1.drop(nan_2)\n",
    "    df_exp2 = df_exp2.drop(nan_1)\n",
    "\n",
    "    df_exp1 = df_exp1.dropna()\n",
    "    df_exp2 = df_exp2.dropna()\n",
    "    \n",
    "    return df_exp1, df_exp2\n",
    "\n",
    "\n",
    "def get_info(info):\n",
    "    \"\"\"Get some statistics from a table for a specific model and experiment\"\"\"    \n",
    "    time_limit = len(info[(info.error == \"TIME LIMIT\") | (info.error == \"TIMEOUT\")])\n",
    "    error = len(info[(info.error != \"TIME LIMIT\") & (info.error != \"TIMEOUT\") & (info.error != \"OK\") & (info.error != 'MDD') & (info.error != 'TABLE FULL')])\n",
    "    memory = len(info[(info.error == 'MDD') | (info.error == 'TABLE FULL')])\n",
    "    ok = len(info[info.error == \"OK\"])\n",
Jaime Arias's avatar
Jaime Arias committed
220
    "    \n",
Jaime Arias's avatar
Jaime Arias committed
221
    "    if ((time_limit + error + ok + memory) != len(info)): raise Exception(\"Some information is missing in the table\")\n",
Jaime Arias's avatar
Jaime Arias committed
222
223
224
225
    "    \n",
    "    return {\n",
    "        \"time limit\": time_limit,\n",
    "        \"error\": error,\n",
Jaime Arias's avatar
Jaime Arias committed
226
    "        \"memory\": memory,\n",
Jaime Arias's avatar
Jaime Arias committed
227
228
    "        \"OK\": ok\n",
    "    }\n",
229
230
    "\n",
    "\n",
Jaime Arias's avatar
Jaime Arias committed
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
    "def get_best_times(table_time, table_error, model, exp1, exp2):\n",
    "    exp1 = pd.DataFrame({\"times_exp1\": table_time.loc[model][exp1], \"errors_exp1\": table_error.loc[model][exp1]})\n",
    "    exp2 = pd.DataFrame({\"times_exp2\": table_time.loc[model][exp2], \"errors_exp2\": table_error.loc[model][exp2]})\n",
    "\n",
    "    exp1, exp2 = filter_errors(exp1, exp2)\n",
    "    df_ = pd.concat([exp1, exp2], axis=1, sort=False)\n",
    "\n",
    "    df_ = df_[df_[\"times_exp1\"] != df_[\"times_exp2\"]]\n",
    "    df_['best'] = np.where((df_[\"times_exp1\"] < df_[\"times_exp2\"]), \"exp1\", \"exp2\")\n",
    "    count = df_.groupby([\"best\"]).size()\n",
    "\n",
    "    return count.get(\"exp1\",0), count.get(\"exp2\",0)\n",
    "\n",
    "\n",
    "def get_table(df_time, df_errors, model, exp1, exp2):\n",
Jaime Arias's avatar
Jaime Arias committed
246
    "    \"\"\"Creates a table with some statistics from a dataframe for a model and experiments\"\"\"\n",
Jaime Arias's avatar
Jaime Arias committed
247
248
249
250
251
252
253
254
255
256
    "    rows=[[\"<b>Experiment</b>\", \"<b>Time Limit</b>\", \"<b>Memory</b>\", \"<b>Unknown Error</b>\", \"<b>OK</b>\", \"<b>Faster</b>\"]]\n",
    "    \n",
    "    df_exp1 = pd.DataFrame({\"error\": df_errors.loc[model][exp1]})\n",
    "    df_exp2 = pd.DataFrame({\"error\": df_errors.loc[model][exp2]})\n",
    "    df_exp1, df_exp2 = filter_errors(df_exp1, df_exp2)\n",
    "    \n",
    "    info1 = get_info(df_exp1)\n",
    "    info2 = get_info(df_exp2)\n",
    "    \n",
    "    best1, best2 = get_best_times(df_time, df_errors, model, exp1, exp2)\n",
Jaime Arias's avatar
Jaime Arias committed
257
    "    \n",
Jaime Arias's avatar
Jaime Arias committed
258
259
    "    for (experiment, info, best) in [(exp1, info1, best1), (exp2, info2, best2)]:\n",
    "        rows.append([experiment, info[\"time limit\"], info[\"memory\"], info[\"error\"], info[\"OK\"], best])\n",
Jaime Arias's avatar
Jaime Arias committed
260
261
    "        \n",
    "    return ff.create_table(rows)\n"
Jaime Arias's avatar
Jaime Arias committed
262
263
264
265
   ]
  },
  {
   "cell_type": "code",
Jaime Arias's avatar
Jaime Arias committed
266
   "execution_count": 7,
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
   "metadata": {
    "scrolled": false
   },
   "outputs": [],
   "source": [
    "import webbrowser\n",
    "\n",
    "def get_filename(base_path, tool, model, model_instance, formula):\n",
    "    \"\"\"Returns the absolute path of the experiment log\n",
    "    \n",
    "    Parameters\n",
    "    ----------\n",
    "    base_path : string\n",
    "        Path of the folder where logs are saved\n",
    "    tool : string\n",
    "        Tool name\n",
    "    model : string\n",
    "        Model name\n",
    "    model_instance : string\n",
    "        Name of the model instance\n",
    "    formula : string\n",
    "        Identifier of the formula\n",
    "    \n",
    "    Returns\n",
    "    -------\n",
    "    string\n",
    "        Absolute path of the log file\n",
    "    \n",
    "    \"\"\"\n",
    "    information = tool.split('_')\n",
    "    \n",
    "    tool_name = information[0]\n",
    "    tool_configuration = '_'.join(information[:-2])\n",
    "    nb_nodes = information[-2]\n",
    "    nb_cores = information[-1]\n",
    "    \n",
    "    experiment_folder = os.path.join(base_path, tool_name, tool_configuration, model, model_instance)\n",
    "    filename = f'{tool_name}_{model_instance}-n{nb_nodes}-th{nb_cores}-f{formula}'\n",
    "    absolute_path = os.path.join(experiment_folder, filename)\n",
    "    \n",
    "    return absolute_path\n",
    "\n",
    "def open_logs_callback(trace, points, selector):\n",
    "    \"\"\"Callback that open the log files when clicking on a point of the figure\n",
    "    \n",
    "    Parameters\n",
    "    ----------\n",
    "    trace : plotly.graph_objects.Figure\n",
    "        the figure to attach the callback\n",
    "    points : plotly.callbacks.Points \n",
    "        points of the figure selected\n",
    "    selector: plotly.callbacks.InputDeviceState \n",
    "        Device information \n",
    "    \"\"\"\n",
    "    inds = points.point_inds\n",
    "    if (inds):\n",
    "        index = inds[0]\n",
    "\n",
    "        formula, error_x, error_y = trace['customdata'][index]\n",
    "        model_instance = trace['meta']['model']\n",
    "        model = ''.join(c for c in model_instance if not c.isdigit())\n",
    "        tools = trace['meta']['tools']\n",
    "        logs_folder = trace['meta']['folder']\n",
    "\n",
    "        filename_x = get_filename(logs_folder, tools['x'], model, model_instance, formula)\n",
    "        filename_y = get_filename(logs_folder, tools['y'], model, model_instance, formula)\n",
    "\n",
    "        for f in [filename_x, filename_y]:\n",
    "            webbrowser.open(f'file://{f}.err')\n",
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
    "            webbrowser.open(f'file://{f}.out')\n",
    "\n",
    "OPEN_LOGS_CALLBACK_JS = \"\"\"\n",
    "function get_filename (base_path, tool, model_instance, formula) {\n",
    "  const information = tool.split('_');\n",
    "  const size = information.length;\n",
    "\n",
    "  const tool_name = information[0];\n",
    "  const tool_configuration = information.slice(0, size - 2).join('_');\n",
    "  const nb_nodes = information[size - 2];\n",
    "  const nb_cores = information[size - 1];\n",
    "\n",
    "  const model = model_instance.replace(/[0-9]/g, '');\n",
    "\n",
    "  const experiment_folder = `${base_path}/${tool_name}/${tool_configuration}/${model}/${model_instance}`;\n",
    "  const filename = `${tool_name}_${model_instance}-n${nb_nodes}-th${nb_cores}-f${formula}`;\n",
    "\n",
    "  return `${experiment_folder}/${filename}`;\n",
    "}\n",
    "\n",
    "const plots = document.getElementsByClassName(\"plotly-graph-div js-plotly-plot\");\n",
    "const myPlot = plots[0];\n",
    "\n",
    "myPlot.on('plotly_click', function(data){\n",
    "    const points = data.points;\n",
    "    if (points.length != 1) {return ;}\n",
    "    \n",
    "    const myPoint = points[0];\n",
    "    const formula = myPoint.customdata[0];\n",
    "    const meta = myPoint.data.meta;\n",
    "    \n",
    "    const href = window.location.href.split('/');\n",
Jaime Arias's avatar
Jaime Arias committed
368
    "    const base_path = href.splice(0,href.length-4).join('/');\n",
369
    "    \n",
Jaime Arias's avatar
Jaime Arias committed
370
371
    "    const filename_x = get_filename(base_path, meta.tools.x, meta.model, formula);\n",
    "    const filename_y = get_filename(base_path, meta.tools.y, meta.model, formula);\n",
372
373
374
375
376
377
378
379
380
381
    "    \n",
    "    console.log('x: ' + filename_x);\n",
    "    window.open(`${filename_x}.err`);\n",
    "    window.open(`${filename_x}.out`);\n",
    "    \n",
    "    console.log('y: ' + filename_y);\n",
    "    window.open(`${filename_y}.err`);\n",
    "    window.open(`${filename_y}.out`);\n",
    "});\n",
    "\"\"\"\n"
382
383
384
385
   ]
  },
  {
   "cell_type": "code",
Jaime Arias's avatar
Jaime Arias committed
386
   "execution_count": 8,
Jaime Arias's avatar
Jaime Arias committed
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
   "metadata": {},
   "outputs": [],
   "source": [
    "def create_figure_explored_states(table_explored_states, model):\n",
    "    \"\"\"Creates figure showing the number of explorated states during the verification \n",
    "    \n",
    "    Parameters\n",
    "    ----------\n",
    "    table_explored_states : pandas.Dataframe\n",
    "        Dataframe with the explorated states of each experiment\n",
    "    model : string\n",
    "        Model to be analyzed\n",
    "        \n",
    "    Returns\n",
    "    -------\n",
    "    plotly.graph_objects.Figure\n",
    "        Scatter figure\n",
    "    \"\"\"\n",
    "    colors={'T': 'green', 'F': 'red'}\n",
    "    float_formatter = \"{:.2E}\".format\n",
    "\n",
    "    table_model = table_explored_states[table_explored_states.property != 'U']\n",
    "    table_model = table_model[table_model.model == model]\n",
    "\n",
    "    table_stats = table_model.groupby(['property']).agg(['mean']) \n",
    "\n",
    "    fig = go.Figure()\n",
Jaime Arias's avatar
Jaime Arias committed
414
    "    max_x = 0\n",
Jaime Arias's avatar
Jaime Arias committed
415
416
417
418
419
    "    for p in table_stats.index:\n",
    "        data = table_model[table_model.property==p]\n",
    "        stats = table_stats.loc[p]\n",
    "        \n",
    "        x_axis = np.arange(1, data['formula'].count()+1, 1)\n",
Jaime Arias's avatar
Jaime Arias committed
420
    "        max_x = max(max_x, x_axis[-1]+1)\n",
Jaime Arias's avatar
Jaime Arias committed
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
    "        mean = stats['explored_states','mean']\n",
    "        \n",
    "        figure = px.scatter(data, \n",
    "                            x=x_axis, \n",
    "                            y=\"explored_states\",\n",
    "                            title=model, \n",
    "                            color='property',\n",
    "                            color_discrete_map=colors,\n",
    "                            symbol_sequence=[\"circle\"])\n",
    "\n",
    "        line = go.Scatter(x=[x_axis[0], x_axis[-1]], \n",
    "                          y=[mean, mean],\n",
    "                          mode='lines', showlegend=False,                          \n",
    "                          line=dict(color=colors[p], width=1.5))\n",
    "\n",
    "        fig.add_trace(figure['data'][0])\n",
    "        fig.add_trace(line)\n",
    "        \n",
    "        fig.add_annotation(x=1, \n",
    "                           y=mean,\n",
    "                           font=dict(color=colors[p]),\n",
    "                           text=f\"mean = {float_formatter(mean)}\")\n",
    "\n",
    "    fig.update_layout(title_text=model, title=LAYOUT_FIGURES['title'], \n",
    "                      width = 500, height = 500, margin=dict(r=110))\n",
    "    \n",
Jaime Arias's avatar
Jaime Arias committed
447
    "    fig.update_xaxes(title=\"formula\", range=[0, max_x])\n",
Jaime Arias's avatar
Jaime Arias committed
448
449
450
451
452
453
454
455
456
457
458
    "    fig.update_yaxes(title=\"# explored states\")\n",
    "    \n",
    "    fig.update_annotations(dict(\n",
    "        showarrow=False,\n",
    "        xanchor=\"left\",\n",
    "        yanchor=\"middle\",\n",
    "        xref='paper'))\n",
    "    \n",
    "    return fig"
   ]
  },
Jaime Arias's avatar
Jaime Arias committed
459
460
  {
   "cell_type": "code",
Jaime Arias's avatar
Jaime Arias committed
461
   "execution_count": 9,
Jaime Arias's avatar
Jaime Arias committed
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
   "metadata": {},
   "outputs": [],
   "source": [
    "def create_log_figure(table, table_errors, model, tool_x, tool_y, show_strategy=True, callback=None):\n",
    "    \"\"\"Creates a Scatter figure in logarithmic scale comparing the performance of two tools\n",
    "    \n",
    "    Parameters\n",
    "    ----------\n",
    "    table : pandas.Dataframe\n",
    "        Dataframe with the times of each experiment\n",
    "    table_errors : pandas.Dataframe\n",
    "        Dataframe with the errors of each experiment\n",
    "    model : string\n",
    "        Model to be analyzed\n",
    "    tool_x : string\n",
    "        Tool to be compared and plotted on the x-axis\n",
    "    tool_y : string\n",
    "        Tool to be compared and plotted on the y-axis\n",
    "    show_strategy : bool\n",
    "        Flag to show the stretagy used by the tools\n",
    "    callback : function\n",
    "        Function to be called when clicking on a point\n",
    "        \n",
    "    Returns\n",
    "    -------\n",
    "    plotly.graph_objects.Figure\n",
    "        Scatter figure\n",
    "        \n",
    "    Examples\n",
    "    --------\n",
    "    >>> import os\n",
    "    >>> import pandas as pd\n",
    "    >>> csv_file = os.path.join(\"results\", \"output.csv\")\n",
    "    >>> df = pd.read_csv(csv_file)\n",
    "    >>> table = df.set_index(['model', 'formula', 'tool'], drop=True).unstack('tool')\n",
    "    >>> fig = create_log_figure(table['time'], table['error'], 'philo10', 'pmc-sog_otfL_couv99-default_1_8', 'pmc-sog_otfP_couv99-default_1_8')\n",
    "    \"\"\"\n",
    "    try:\n",
    "        min_value = ZERO\n",
    "        max_value = TIMEOUT\n",
    "        \n",
    "        min_value_log = np.log10(min_value)\n",
    "        max_value_log = np.log10(max_value)\n",
    "\n",
    "        table_model = table.loc[model]\n",
    "        table_errors_model = table_error.loc[model]\n",
    "        \n",
    "        full_table_x = pd.concat([table_model[tool_x],table_model['property'], table_errors_model[tool_x]], axis=1)\n",
    "        full_table_x.columns = ['time', 'property', 'error']\n",
    "\n",
    "        full_table_y = pd.concat([table_model[tool_y],table_model['property'], table_errors_model[tool_y]], axis=1)\n",
    "        full_table_y.columns = ['time', 'property', 'error']\n",
Jaime Arias's avatar
Jaime Arias committed
514
515
    "        \n",
    "        full_table_x, full_table_y = filter_errors(full_table_x, full_table_y)\n",
Jaime Arias's avatar
Jaime Arias committed
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
    "\n",
    "        traces = [\n",
    "            {\"property\": 'T', \"color\":\"green\"},\n",
    "            {\"property\": 'F', \"color\":\"red\"},\n",
    "            {\"property\": 'U', \"color\":\"black\"}\n",
    "        ]\n",
    "\n",
    "        figures = []\n",
    "        for t in traces:\n",
    "            # filter by verification output\n",
    "            table_x = full_table_x[full_table_x.property == t['property']]\n",
    "            table_y = full_table_y[full_table_y.property == t['property']]\n",
    "\n",
    "            # custom data\n",
    "            custom_data = list(zip(table_x.index, table_x.error,table_y.error))\n",
    "            \n",
    "            # tools\n",
    "            metainfo = {\n",
    "                'model': model, \n",
    "                'tools': {'x': tool_x, 'y': tool_y},\n",
    "                'folder': os.path.join(os.path.abspath(os.pardir), \"results\")\n",
    "            }\n",
    "\n",
    "            figures.append(go.Scatter(x=table_x.time,\n",
    "                                      y=table_y.time,\n",
    "                                      name=t['property'],\n",
    "                                      mode='markers',\n",
    "                                      marker_symbol='circle-open',\n",
    "                                      marker_color=t['color'],\n",
    "                                      meta = metainfo,\n",
    "                                      customdata=custom_data,\n",
    "                                      hovertemplate =\n",
    "                                        '<b>Formula # %{customdata[0]}</b><br>' +\n",
    "                                        '<br><b>Times:</b><br>' +\n",
    "                                        '<b>x:</b> %{x} s' +\n",
    "                                        '<br><b>y:</b> %{y} s<br>' +\n",
    "                                        '<br><b>Errors:</b><br>' +\n",
    "                                        '<b>x:</b> %{customdata[1]}<br>' +\n",
    "                                        '<b>y:</b> %{customdata[2]}',\n",
    "                                        ))    \n",
    "\n",
    "        # Line\n",
    "        figures.append(go.Scatter(x=[min_value, max_value], \n",
    "                                    y=[min_value, max_value],\n",
    "                                    mode='lines', showlegend=False,\n",
    "                                    line=dict(color='black', width=1)))\n",
    "\n",
    "        # Create figure\n",
    "        figure = go.FigureWidget(figures)\n",
    "        figure.update_layout(LAYOUT_FIGURES,\n",
    "                             title_text=model,\n",
    "                             hoverlabel=dict(bgcolor=\"white\", align='auto'),\n",
    "                             legend_title_text='property',\n",
    "                             xaxis=dict(type='log', autorange=False, range=[min_value_log, max_value_log]),\n",
    "                             yaxis=dict(type='log', autorange=False, range=[min_value_log, max_value_log]),\n",
    "                             xaxis_title=get_axis_title(tool_x, show_strategy),\n",
    "                             yaxis_title=get_axis_title(tool_y, show_strategy))\n",
    "\n",
    "        # Add event\n",
    "        if callback is not None:\n",
    "            for i in range(len(figure.data)):\n",
    "                figure.data[i].on_click(callback)\n",
    "    \n",
    "        return figure\n",
    "    except Exception as e:\n",
    "        print(\"Error when ploting model: {} - tool_x: {} - tool_y: {}\".format(model, tool_x, tool_y))\n",
    "        print(e)"
   ]
  },
Jaime Arias's avatar
Jaime Arias committed
585
586
  {
   "cell_type": "code",
Jaime Arias's avatar
Jaime Arias committed
587
   "execution_count": 10,
Jaime Arias's avatar
Jaime Arias committed
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
   "metadata": {},
   "outputs": [],
   "source": [
    "# Experiment filters\n",
    "\n",
    "def versus_dfs(experiments):\n",
    "    \"\"\"Selects only experiments using DFS strategy\"\"\"\n",
    "    exp1, exp2 = experiments\n",
    "    strategy_exp1= exp1.split('_')[1]\n",
    "    strategy_exp2= exp2.split('_')[1]\n",
    "    \n",
    "    return strategy_exp1 == 'dfs' or strategy_exp2 == 'dfs'\n",
    "\n",
    "def versus_sequential(experiments):\n",
    "    \"\"\"Selects only experiments run sequentially \"\"\"\n",
    "    exp1, exp2 = experiments\n",
    "    nodes_exp1, threads_exp1 = exp1.split('_')[-2:]\n",
    "    nodes_exp2, threads_exp2 = exp2.split('_')[-2:]\n",
    "\n",
    "    return (nodes_exp1 == '1' and nodes_exp2 == '1') and \\\n",
    "            (threads_exp1 == '1' or threads_exp2 == '1')\n",
    "\n",
    "def same_tool(experiments, tool):\n",
    "    \"\"\"Selects only experiments comparing the same tool\"\"\"\n",
    "    exp1, exp2 = experiments\n",
    "    tool_exp1= exp1.split('_')[0]\n",
    "    tool_exp2= exp2.split('_')[0]\n",
    "    return tool_exp1.startswith(tool) and tool_exp2.startswith(tool)\n",
    "\n",
    "def same_number_threads(experiments):\n",
    "    \"\"\"Selects only experiments comparing the same number of processes and cores\"\"\"\n",
    "    exp1, exp2 = experiments\n",
    "    nodes_exp1, threads_exp1 = exp1.split('_')[-2:]\n",
    "    nodes_exp2, threads_exp2 = exp2.split('_')[-2:]\n",
    "    return (nodes_exp1 == nodes_exp2) and (threads_exp1 == threads_exp2) \n",
    "\n",
    "def same_thread_library(experiments):\n",
    "    \"\"\"Selects only experiments comparing the same parallelization library\"\"\"\n",
    "    exp1, exp2 = experiments\n",
    "    library_exp1 = exp1.split('_')[1]\n",
    "    library_exp2 = exp2.split('_')[1]\n",
    "    return library_exp1 == library_exp2\n",
    "\n",
    "def same_strategy(experiments):\n",
    "    \"\"\"Selects only experiments comparing the same strategy\"\"\"\n",
    "    exp1, exp2 = experiments\n",
    "    strategy_exp1 = exp1.split('_')[2]\n",
    "    strategy_exp2 = exp2.split('_')[2]\n",
    "    return strategy_exp1 == strategy_exp2\n",
    "\n",
    "def only_couvreur_strategy(experiments):\n",
    "    \"\"\"Selects only experiments comparing couvreur emptiness check algorithm\"\"\"\n",
    "    exp1, exp2 = experiments\n",
    "    strategy_exp1 = exp1.split('_')[2]\n",
    "    strategy_exp2 = exp2.split('_')[2]\n",
    "    return strategy_exp1.startswith('couv99') and strategy_exp2.startswith('couv99')\n",
    "\n",
    "def compare_threads_library(experiments):\n",
    "    \"\"\"Compares parallization libraries used in pmc-sog. \n",
    "    \n",
    "    It selects experiments where the tool is only pmc-sog and the strategy, number of threads, \n",
    "    number of processus are the same.\n",
    "    \"\"\"\n",
    "    return same_tool(experiments, 'pmc-sog') and \\\n",
    "            same_strategy(experiments) and \\\n",
    "            same_number_threads(experiments) and \\\n",
    "            not same_thread_library(experiments)\n",
    "\n",
    "def compare_couvreur_strategies(experiments):\n",
    "    \"\"\"Compares couvreurs strategies used in pmc-sog. \n",
    "    \n",
    "    It selects experiments where the tool is only pmc-sog, the strategy is couvreur, and \n",
    "    the parallelization library, number of threads, number of processus are the same.\n",
    "    \"\"\"\n",
    "    return only_couvreur_strategy(experiments) and \\\n",
    "            same_thread_library(experiments) and \\\n",
    "            same_number_threads(experiments)\n",
    "\n",
666
667
668
669
670
671
672
    "def same_distributed_number_threads(experiments):\n",
    "    \"\"\"Selects only experiments where the multiplication of theirs nodes with cores are the same.\"\"\"\n",
    "    exp1, exp2 = experiments\n",
    "    nodes_exp1, threads_exp1 = exp1.split('_')[-2:]\n",
    "    nodes_exp2, threads_exp2 = exp2.split('_')[-2:]\n",
    "    return (int(nodes_exp1) * int(threads_exp1)) == (int(nodes_exp2) * int(threads_exp2))\n",
    "\n",
Jaime Arias's avatar
Jaime Arias committed
673
674
675
676
677
678
    "def compare_tools(experiments):\n",
    "    \"\"\"Compares pmc-sog and pnml2lts-mc using the DFS algorithm. \n",
    "    \n",
    "    It selects experiments where the tools are not the same, the exploration algorithm is DFS and \n",
    "    the number of processus and cores are the same.\n",
    "    \"\"\"\n",
679
    "    return not (same_tool(experiments, 'pmc-sog') or same_tool(experiments,'pnml2lts-mc')) and \\\n",
Jaime Arias's avatar
Jaime Arias committed
680
681
682
683
684
685
686
687
688
689
690
691
692
    "            versus_dfs(experiments)\n",
    "\n",
    "def compare_multithreading(experiments):\n",
    "    \"\"\"Compares the sequential and multi-core version of pmc-sog. \n",
    "    \n",
    "    It selects experiments where the tools is pmc-sog, the parallelization library, the emptiness check \n",
    "    strategy are the same. Here the number of processus and cores are different.\n",
    "    \"\"\"\n",
    "    return same_tool(experiments, 'pmc-sog') and \\\n",
    "            same_thread_library(experiments) and \\\n",
    "            same_strategy(experiments) and \\\n",
    "            versus_sequential(experiments)\n",
    "\n",
693
694
695
696
697
698
699
700
    "def against_hybrid(experiments):\n",
    "    \"\"\"Selects only experiments comparing with hybrid mode\"\"\"\n",
    "    exp1, exp2 = experiments\n",
    "    library_exp1 = exp1.split('_')[1]\n",
    "    library_exp2 = exp2.split('_')[1]\n",
    "    return (library_exp1 == 'otf') or (library_exp2 == 'otf')\n",
    "\n",
    "\n",
701
702
703
704
    "def compare_distributed(experiments):\n",
    "    \"\"\"Compares the hybrid version of pmc-sog\"\"\"\n",
    "    return same_tool(experiments, 'pmc-sog') and \\\n",
    "        same_strategy(experiments) and \\\n",
705
706
    "        same_distributed_number_threads(experiments) and \\\n",
    "        against_hybrid(experiments)\n",
707
    "\n",
Jaime Arias's avatar
Jaime Arias committed
708
709
710
711
712
713
714
    "def compare_others(experiments):\n",
    "    return (not compare_threads_library(experiments)) and \\\n",
    "        (not compare_couvreur_strategies(experiments)) and \\\n",
    "        (not compare_tools(experiments)) and \\\n",
    "        (not compare_multithreading(experiments)) and \\\n",
    "        (not compare_distributed(experiments))\n",
    "\n",
Jaime Arias's avatar
Jaime Arias committed
715
716
717
718
719
    "# Plots to be created\n",
    "plots = {\n",
    "    'compare_thread_library': compare_threads_library,\n",
    "    'compare_couvreur_algorithm': compare_couvreur_strategies,\n",
    "    'compare_tools': compare_tools,\n",
720
    "    'compare_multicore': compare_multithreading,\n",
Jaime Arias's avatar
Jaime Arias committed
721
722
    "    'compare_distributed': compare_distributed,\n",
    "    'others' : compare_others\n",
Jaime Arias's avatar
Jaime Arias committed
723
724
725
726
727
728
729
730
731
732
733
734
    "}"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Load Data"
   ]
  },
  {
   "cell_type": "code",
Jaime Arias's avatar
Jaime Arias committed
735
   "execution_count": 11,
Jaime Arias's avatar
Jaime Arias committed
736
737
738
739
740
741
742
743
744
   "metadata": {},
   "outputs": [],
   "source": [
    "# Root folder\n",
    "PROJECT_FOLDER = os.path.abspath(os.pardir)\n",
    "\n",
    "# csv file with the output\n",
    "csv_file = os.path.join(PROJECT_FOLDER, \"results\", \"output.csv\")\n",
    "\n",
Jaime Arias's avatar
Jaime Arias committed
745
746
747
    "# formulas folder\n",
    "FORMULAS_FOLDER = os.path.join(PROJECT_FOLDER, \"formulas\")\n",
    "\n",
Jaime Arias's avatar
Jaime Arias committed
748
749
750
751
752
753
754
    "# Output folder\n",
    "OUTPUT_FOLDER = os.path.join(PROJECT_FOLDER,\"results\", \"figures\")\n",
    "create_folder(OUTPUT_FOLDER)"
   ]
  },
  {
   "cell_type": "code",
Jaime Arias's avatar
Jaime Arias committed
755
   "execution_count": 12,
Jaime Arias's avatar
Jaime Arias committed
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>model</th>\n",
       "      <th>formula</th>\n",
       "      <th>tool</th>\n",
       "      <th>time</th>\n",
       "      <th>property</th>\n",
Jaime Arias's avatar
Jaime Arias committed
784
       "      <th>explored_states</th>\n",
Jaime Arias's avatar
Jaime Arias committed
785
786
787
788
789
790
       "      <th>error</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
Jaime Arias's avatar
Jaime Arias committed
791
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
792
       "      <td>1</td>\n",
Jaime Arias's avatar
Jaime Arias committed
793
       "      <td>pmc-sog_otfC_couv99-default_1_16</td>\n",
Jaime Arias's avatar
Jaime Arias committed
794
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
795
796
797
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
798
799
800
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
Jaime Arias's avatar
Jaime Arias committed
801
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
802
       "      <td>1</td>\n",
Jaime Arias's avatar
Jaime Arias committed
803
       "      <td>pmc-sog_otfC_couv99-shy_1_16</td>\n",
Jaime Arias's avatar
Jaime Arias committed
804
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
805
806
807
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
808
809
810
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
Jaime Arias's avatar
Jaime Arias committed
811
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
812
       "      <td>1</td>\n",
Jaime Arias's avatar
Jaime Arias committed
813
       "      <td>pmc-sog_otfPR_couv99-default_1_16</td>\n",
Jaime Arias's avatar
Jaime Arias committed
814
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
815
816
817
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
818
819
820
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
Jaime Arias's avatar
Jaime Arias committed
821
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
822
       "      <td>1</td>\n",
Jaime Arias's avatar
Jaime Arias committed
823
824
       "      <td>pmc-sog_otfPR_couv99-shy_1_16</td>\n",
       "      <td>2.737</td>\n",
Jaime Arias's avatar
Jaime Arias committed
825
       "      <td>F</td>\n",
Jaime Arias's avatar
Jaime Arias committed
826
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
827
       "      <td>OK</td>\n",
Jaime Arias's avatar
Jaime Arias committed
828
829
830
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
Jaime Arias's avatar
Jaime Arias committed
831
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
832
       "      <td>1</td>\n",
Jaime Arias's avatar
Jaime Arias committed
833
       "      <td>pmc-sog_otfP_couv99-default_1_16</td>\n",
Jaime Arias's avatar
Jaime Arias committed
834
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
835
836
837
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
838
839
840
841
842
843
844
845
846
847
848
849
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
Jaime Arias's avatar
Jaime Arias committed
850
851
       "      <th>2395</th>\n",
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
852
       "      <td>200</td>\n",
Jaime Arias's avatar
Jaime Arias committed
853
       "      <td>pmc-sog_otf_couv99-default_4_4</td>\n",
Jaime Arias's avatar
Jaime Arias committed
854
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
855
856
857
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
858
859
       "    </tr>\n",
       "    <tr>\n",
Jaime Arias's avatar
Jaime Arias committed
860
861
       "      <th>2396</th>\n",
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
862
863
864
       "      <td>200</td>\n",
       "      <td>pmc-sog_otf_couv99-shy_2_8</td>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
865
866
867
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
868
869
       "    </tr>\n",
       "    <tr>\n",
Jaime Arias's avatar
Jaime Arias committed
870
871
       "      <th>2397</th>\n",
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
872
       "      <td>200</td>\n",
Jaime Arias's avatar
Jaime Arias committed
873
       "      <td>pmc-sog_otf_couv99-shy_4_4</td>\n",
Jaime Arias's avatar
Jaime Arias committed
874
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
875
876
877
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
878
879
       "    </tr>\n",
       "    <tr>\n",
Jaime Arias's avatar
Jaime Arias committed
880
881
       "      <th>2398</th>\n",
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
882
883
       "      <td>200</td>\n",
       "      <td>pnml2lts-mc_dfs_1_16</td>\n",
Jaime Arias's avatar
Jaime Arias committed
884
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
885
886
887
       "      <td>NaN</td>\n",
       "      <td>2.875346e+09</td>\n",
       "      <td>TABLE FULL</td>\n",
Jaime Arias's avatar
Jaime Arias committed
888
889
       "    </tr>\n",
       "    <tr>\n",
Jaime Arias's avatar
Jaime Arias committed
890
891
       "      <th>2399</th>\n",
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
892
893
       "      <td>200</td>\n",
       "      <td>pnml2lts-mc_ndfs_1_16</td>\n",
Jaime Arias's avatar
Jaime Arias committed
894
895
896
897
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
898
899
900
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
Jaime Arias's avatar
Jaime Arias committed
901
       "<p>2400 rows × 7 columns</p>\n",
Jaime Arias's avatar
Jaime Arias committed
902
903
904
       "</div>"
      ],
      "text/plain": [
Jaime Arias's avatar
Jaime Arias committed
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
       "        model  formula                               tool   time property  \\\n",
       "0     robot20        1   pmc-sog_otfC_couv99-default_1_16    NaN      NaN   \n",
       "1     robot20        1       pmc-sog_otfC_couv99-shy_1_16    NaN      NaN   \n",
       "2     robot20        1  pmc-sog_otfPR_couv99-default_1_16    NaN      NaN   \n",
       "3     robot20        1      pmc-sog_otfPR_couv99-shy_1_16  2.737        F   \n",
       "4     robot20        1   pmc-sog_otfP_couv99-default_1_16    NaN      NaN   \n",
       "...       ...      ...                                ...    ...      ...   \n",
       "2395  robot20      200     pmc-sog_otf_couv99-default_4_4    NaN      NaN   \n",
       "2396  robot20      200         pmc-sog_otf_couv99-shy_2_8    NaN      NaN   \n",
       "2397  robot20      200         pmc-sog_otf_couv99-shy_4_4    NaN      NaN   \n",
       "2398  robot20      200               pnml2lts-mc_dfs_1_16    NaN      NaN   \n",
       "2399  robot20      200              pnml2lts-mc_ndfs_1_16    NaN      NaN   \n",
       "\n",
       "      explored_states       error  \n",
       "0                 NaN  TIME LIMIT  \n",
       "1                 NaN  TIME LIMIT  \n",
       "2                 NaN  TIME LIMIT  \n",
       "3                 NaN          OK  \n",
       "4                 NaN  TIME LIMIT  \n",
       "...               ...         ...  \n",
       "2395              NaN  TIME LIMIT  \n",
       "2396              NaN  TIME LIMIT  \n",
       "2397              NaN  TIME LIMIT  \n",
       "2398     2.875346e+09  TABLE FULL  \n",
       "2399              NaN  TIME LIMIT  \n",
       "\n",
       "[2400 rows x 7 columns]"
Jaime Arias's avatar
Jaime Arias committed
932
933
      ]
     },
Jaime Arias's avatar
Jaime Arias committed
934
     "execution_count": 12,
Jaime Arias's avatar
Jaime Arias committed
935
936
937
938
939
940
941
942
943
944
945
946
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# read data\n",
    "df = pd.read_csv(csv_file)\n",
    "\n",
    "# merge the information related to the experiment (# nodes, # threads, strategy) to the tool column\n",
    "df['tool'] = df[['tool', 'strategy', 'num_nodes', 'num_threads']].astype(str).apply('_'.join, axis=1)\n",
    "df = df.drop(columns=['strategy', 'num_nodes', 'num_threads'])\n",
    "\n",
Jaime Arias's avatar
Jaime Arias committed
947
    "# FIX: filtering philo20 experiments because there is a problem with the generated formulas\n",
Jaime Arias's avatar
Jaime Arias committed
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
    "df = df[df.model != \"philo20\"]\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>model</th>\n",
       "      <th>formula</th>\n",
       "      <th>tool</th>\n",
       "      <th>time</th>\n",
       "      <th>property</th>\n",
       "      <th>explored_states</th>\n",
       "      <th>error</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
Jaime Arias's avatar
Jaime Arias committed
990
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
991
       "      <td>1</td>\n",
Jaime Arias's avatar
Jaime Arias committed
992
       "      <td>pmc-sog_otfC_couv99-default_1_16</td>\n",
Jaime Arias's avatar
Jaime Arias committed
993
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
994
995
996
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
997
998
999
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1000
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1001
       "      <td>1</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1002
       "      <td>pmc-sog_otfC_couv99-shy_1_16</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1003
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1004
1005
1006
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1007
1008
1009
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1010
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1011
       "      <td>1</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1012
       "      <td>pmc-sog_otfPR_couv99-default_1_16</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1013
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1014
1015
1016
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1017
1018
1019
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1020
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1021
       "      <td>1</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1022
1023
       "      <td>pmc-sog_otfPR_couv99-shy_1_16</td>\n",
       "      <td>2.737</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1024
1025
1026
1027
1028
1029
       "      <td>F</td>\n",
       "      <td>NaN</td>\n",
       "      <td>OK</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1030
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1031
       "      <td>1</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1032
       "      <td>pmc-sog_otfP_couv99-default_1_16</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1033
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1034
1035
1036
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
Jaime Arias's avatar
Jaime Arias committed
1049
1050
       "      <th>1763</th>\n",
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1051
       "      <td>200</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1052
       "      <td>pmc-sog_otf_couv99-default_4_4</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1053
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1054
1055
1056
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1057
1058
       "    </tr>\n",
       "    <tr>\n",
Jaime Arias's avatar
Jaime Arias committed
1059
1060
       "      <th>1764</th>\n",
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1061
1062
1063
       "      <td>200</td>\n",
       "      <td>pmc-sog_otf_couv99-shy_2_8</td>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1064
1065
1066
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1067
1068
       "    </tr>\n",
       "    <tr>\n",
Jaime Arias's avatar
Jaime Arias committed
1069
1070
       "      <th>1765</th>\n",
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1071
       "      <td>200</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1072
       "      <td>pmc-sog_otf_couv99-shy_4_4</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1073
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1074
1075
1076
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1077
1078
       "    </tr>\n",
       "    <tr>\n",
Jaime Arias's avatar
Jaime Arias committed
1079
1080
       "      <th>1766</th>\n",
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1081
1082
1083
       "      <td>200</td>\n",
       "      <td>pnml2lts-mc_dfs_1_16</td>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1084
1085
1086
       "      <td>NaN</td>\n",
       "      <td>2.875346e+09</td>\n",
       "      <td>TABLE FULL</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1087
1088
       "    </tr>\n",
       "    <tr>\n",
Jaime Arias's avatar
Jaime Arias committed
1089
1090
       "      <th>1767</th>\n",
       "      <td>robot20</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1091
1092
       "      <td>200</td>\n",
       "      <td>pnml2lts-mc_ndfs_1_16</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1093
1094
1095
1096
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1097
1098
1099
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
Jaime Arias's avatar
Jaime Arias committed
1100
       "<p>1768 rows × 7 columns</p>\n",
Jaime Arias's avatar
Jaime Arias committed
1101
1102
1103
       "</div>"
      ],
      "text/plain": [
Jaime Arias's avatar
Jaime Arias committed
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
       "        model  formula                               tool   time property  \\\n",
       "0     robot20        1   pmc-sog_otfC_couv99-default_1_16    NaN      NaN   \n",
       "1     robot20        1       pmc-sog_otfC_couv99-shy_1_16    NaN      NaN   \n",
       "2     robot20        1  pmc-sog_otfPR_couv99-default_1_16    NaN      NaN   \n",
       "3     robot20        1      pmc-sog_otfPR_couv99-shy_1_16  2.737        F   \n",
       "4     robot20        1   pmc-sog_otfP_couv99-default_1_16    NaN      NaN   \n",
       "...       ...      ...                                ...    ...      ...   \n",
       "1763  robot20      200     pmc-sog_otf_couv99-default_4_4    NaN      NaN   \n",
       "1764  robot20      200         pmc-sog_otf_couv99-shy_2_8    NaN      NaN   \n",
       "1765  robot20      200         pmc-sog_otf_couv99-shy_4_4    NaN      NaN   \n",
       "1766  robot20      200               pnml2lts-mc_dfs_1_16    NaN      NaN   \n",
       "1767  robot20      200              pnml2lts-mc_ndfs_1_16    NaN      NaN   \n",
       "\n",
       "      explored_states       error  \n",
       "0                 NaN  TIME LIMIT  \n",
       "1                 NaN  TIME LIMIT  \n",
       "2                 NaN  TIME LIMIT  \n",
       "3                 NaN          OK  \n",
       "4                 NaN  TIME LIMIT  \n",
       "...               ...         ...  \n",
       "1763              NaN  TIME LIMIT  \n",
       "1764              NaN  TIME LIMIT  \n",
       "1765              NaN  TIME LIMIT  \n",
       "1766     2.875346e+09  TABLE FULL  \n",
       "1767              NaN  TIME LIMIT  \n",
       "\n",
       "[1768 rows x 7 columns]"
Jaime Arias's avatar
Jaime Arias committed
1131
1132
      ]
     },
Jaime Arias's avatar
Jaime Arias committed
1133
     "execution_count": 13,
Jaime Arias's avatar
Jaime Arias committed
1134
1135
1136
1137
1138
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
Jaime Arias's avatar
Jaime Arias committed
1139
1140
1141
1142
1143
    "# filtering runtime errors\n",
    "df = df[(df.error != \"SEGMENTATION FAULT\") & \\\n",
    "        (df.error != \"ABORTED\") & \\\n",
    "        (df.error != \"TERMINATE\") & \\\n",
    "        (df.error != \"MDD\")]\n",
Jaime Arias's avatar
Jaime Arias committed
1144
1145
1146
1147
1148
1149
1150
    "\n",
    "df = df.reset_index(drop=True)\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
Jaime Arias's avatar
Jaime Arias committed
1151
   "execution_count": 14,
Jaime Arias's avatar
Jaime Arias committed
1152
   "metadata": {},
Jaime Arias's avatar
Jaime Arias committed
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th>property</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>model</th>\n",
       "      <th>formula</th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
Jaime Arias's avatar
Jaime Arias committed
1186
       "      <th rowspan=\"11\" valign=\"top\">robot20</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1187
       "      <th>1</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1188
       "      <td>F</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1189
1190
1191
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1192
       "      <td>T</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1193
1194
1195
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1196
       "      <td>F</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1197
1198
1199
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1200
       "      <td>F</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1201
1202
1203
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1204
       "      <td>T</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1205
1206
1207
1208
1209
1210
1211
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>196</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1212
       "      <td>T</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1213
1214
1215
       "    </tr>\n",
       "    <tr>\n",
       "      <th>197</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1216
       "      <td>T</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1217
1218
1219
       "    </tr>\n",
       "    <tr>\n",
       "      <th>198</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1220
       "      <td>T</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1221
1222
1223
       "    </tr>\n",
       "    <tr>\n",
       "      <th>199</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1224
       "      <td>T</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1225
1226
1227
       "    </tr>\n",
       "    <tr>\n",
       "      <th>200</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1228
       "      <td>T</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1229
1230
1231
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
Jaime Arias's avatar
Jaime Arias committed
1232
       "<p>200 rows × 1 columns</p>\n",
Jaime Arias's avatar
Jaime Arias committed
1233
1234
1235
       "</div>"
      ],
      "text/plain": [
Jaime Arias's avatar
Jaime Arias committed
1236
1237
       "                property\n",
       "model   formula         \n",
Jaime Arias's avatar
Jaime Arias committed
1238
1239
       "robot20 1              F\n",
       "        2              T\n",
Jaime Arias's avatar
Jaime Arias committed
1240
       "        3              F\n",
Jaime Arias's avatar
Jaime Arias committed
1241
       "        4              F\n",
Jaime Arias's avatar
Jaime Arias committed
1242
       "        5              T\n",
Jaime Arias's avatar
Jaime Arias committed
1243
       "...                  ...\n",
Jaime Arias's avatar
Jaime Arias committed
1244
1245
1246
1247
1248
       "        196            T\n",
       "        197            T\n",
       "        198            T\n",
       "        199            T\n",
       "        200            T\n",
Jaime Arias's avatar
Jaime Arias committed
1249
       "\n",
Jaime Arias's avatar
Jaime Arias committed
1250
       "[200 rows x 1 columns]"
Jaime Arias's avatar
Jaime Arias committed
1251
1252
      ]
     },
Jaime Arias's avatar
Jaime Arias committed
1253
     "execution_count": 14,
Jaime Arias's avatar
Jaime Arias committed
1254
1255
1256
1257
1258
1259
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# ground truth for properties\n",
Jaime Arias's avatar
Jaime Arias committed
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
    "frames = []\n",
    "\n",
    "formula_results = glob.glob(os.path.join(FORMULAS_FOLDER, \"**/formula_results\"), recursive=True)\n",
    "for f in formula_results:\n",
    "    model, out_file = f.split('/')[-2:]\n",
    "    \n",
    "    tmp_df = pd.read_csv(f, sep=\";\", header=None, names=[\"formula\", \"property\"])\n",
    "    tmp_df[\"model\"] = model\n",
    "    frames.append(tmp_df)\n",
    "    \n",
    "p_df = pd.concat(frames)\n",
    "p_df = p_df.reindex(columns=[\"model\", \"formula\", \"property\"])\n",
    "p_df = p_df[p_df['model'].isin(df.model.unique())]\n",
    "p_df['property'] = p_df['property'].replace([True, False], [\"T\", \"F\"])\n",
    "p_df = p_df.set_index([\"model\", \"formula\"])\n",
Jaime Arias's avatar
Jaime Arias committed
1275
    "p_df.sort_index(inplace=True)\n",
Jaime Arias's avatar
Jaime Arias committed
1276
1277
    "\n",
    "p_df"
Jaime Arias's avatar
Jaime Arias committed
1278
1279
1280
1281
   ]
  },
  {
   "cell_type": "code",
Jaime Arias's avatar
Jaime Arias committed
1282
   "execution_count": 15,
Jaime Arias's avatar
Jaime Arias committed
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead tr th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe thead tr:last-of-type th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th colspan=\"10\" halign=\"left\">time</th>\n",
       "      <th>...</th>\n",
       "      <th colspan=\"10\" halign=\"left\">error</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th></th>\n",
       "      <th>tool</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1318
1319
1320
1321
       "      <th>pmc-sog_otfC_couv99-default_1_16</th>\n",
       "      <th>pmc-sog_otfC_couv99-shy_1_16</th>\n",
       "      <th>pmc-sog_otfPR_couv99-default_1_16</th>\n",
       "      <th>pmc-sog_otfPR_couv99-shy_1_16</th>\n",
1322
       "      <th>pmc-sog_otfP_couv99-default_1_16</th>\n",
1323
       "      <th>pmc-sog_otfP_couv99-shy_1_16</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1324
       "      <th>pmc-sog_otf_couv99-default_2_8</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1325
       "      <th>pmc-sog_otf_couv99-default_4_4</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1326
       "      <th>pmc-sog_otf_couv99-shy_2_8</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1327
       "      <th>pmc-sog_otf_couv99-shy_4_4</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1328
       "      <th>...</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1329
1330
1331
1332
1333
1334
       "      <th>pmc-sog_otfPR_couv99-default_1_16</th>\n",
       "      <th>pmc-sog_otfPR_couv99-shy_1_16</th>\n",
       "      <th>pmc-sog_otfP_couv99-default_1_16</th>\n",
       "      <th>pmc-sog_otfP_couv99-shy_1_16</th>\n",
       "      <th>pmc-sog_otf_couv99-default_2_8</th>\n",
       "      <th>pmc-sog_otf_couv99-default_4_4</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1335
       "      <th>pmc-sog_otf_couv99-shy_2_8</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1336
       "      <th>pmc-sog_otf_couv99-shy_4_4</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
       "      <th>pnml2lts-mc_dfs_1_16</th>\n",
       "      <th>pnml2lts-mc_ndfs_1_16</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>model</th>\n",
       "      <th>formula</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
Jaime Arias's avatar
Jaime Arias committed
1368
       "      <th rowspan=\"11\" valign=\"top\">robot20</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1369
       "      <th>1</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1370
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1371
1372
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1373
1374
       "      <td>2.737</td>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1375
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>OK</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>UNKNOWN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1390
1391
1392
1393
       "      <td>OK</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1394
1395
1396
1397
1398
1399
1400
1401
       "      <td>0.714</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.915</td>\n",
       "      <td>0.883</td>\n",
       "      <td>0.777</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.416</td>\n",
       "      <td>1.052</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1402
1403
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1404
       "      <td>...</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1405
       "      <td>OK</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1406
1407
       "      <td>OK</td>\n",
       "      <td>OK</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1408
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1409
1410
       "      <td>OK</td>\n",
       "      <td>OK</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1411
1412
1413
1414
       "      <td>TIME LIMIT</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>UNKNOWN</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1415
1416
1417
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1418
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1419
       "      <td>271.853</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1420
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1421
1422
1423
1424
1425
1426
1427
       "      <td>266.638</td>\n",
       "      <td>NaN</td>\n",
       "      <td>324.036</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>297.056</td>\n",
       "      <td>1053.045</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1428
       "      <td>...</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1429
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1430
1431
1432
1433
       "      <td>OK</td>\n",
       "      <td>NaN</td>\n",
       "      <td>OK</td>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1434
1435
1436
1437
       "      <td>TIME LIMIT</td>\n",
       "      <td>OK</td>\n",
       "      <td>OK</td>\n",
       "      <td>UNKNOWN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1438
1439
1440
       "      <td>OK</td>\n",
       "    </tr>\n",
       "    <tr>\n",
Jaime Arias's avatar
Jaime Arias committed
1441
       "      <th>4</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
       "      <td>0.022</td>\n",
       "      <td>0.023</td>\n",
       "      <td>0.015</td>\n",
       "      <td>0.015</td>\n",
       "      <td>0.033</td>\n",
       "      <td>0.026</td>\n",
       "      <td>0.112</td>\n",
       "      <td>0.126</td>\n",
       "      <td>0.109</td>\n",
       "      <td>0.124</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1452
       "      <td>...</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1453
       "      <td>OK</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1454
1455
       "      <td>OK</td>\n",
       "      <td>OK</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1456
1457
       "      <td>OK</td>\n",
       "      <td>OK</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1458
1459
       "      <td>OK</td>\n",
       "      <td>OK</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1460
1461
       "      <td>OK</td>\n",
       "      <td>UNKNOWN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1462
       "      <td>OK</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1463
1464
       "    </tr>\n",
       "    <tr>\n",
Jaime Arias's avatar
Jaime Arias committed
1465
1466
       "      <th>5</th>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1467
1468
1469
1470
1471
       "      <td>7.658</td>\n",
       "      <td>81.240</td>\n",
       "      <td>7.984</td>\n",
       "      <td>NaN</td>\n",
       "      <td>6.793</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1472
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1473
1474
1475
       "      <td>NaN</td>\n",
       "      <td>9.276</td>\n",
       "      <td>20.551</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1476
       "      <td>...</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1477
       "      <td>OK</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1478
       "      <td>OK</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1479
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1480
1481
       "      <td>OK</td>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1482
1483
1484
1485
       "      <td>NaN</td>\n",
       "      <td>OK</td>\n",
       "      <td>OK</td>\n",
       "      <td>UNKNOWN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
       "      <td>OK</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>196</th>\n",
1514
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1515
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1516
1517
       "      <td>1.149</td>\n",
       "      <td>0.110</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1518
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1519
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1520
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1521
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1522
1523
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1524
       "      <td>...</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1525
       "      <td>OK</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1526
1527
1528
1529
1530
1531
1532
1533
       "      <td>OK</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>UNKNOWN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1534
       "      <td>OK</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1535
1536
       "    </tr>\n",
       "    <tr>\n",
Jaime Arias's avatar
Jaime Arias committed
1537
1538
1539
       "      <th>197</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1540
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1541
       "      <td>3.731</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1542
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1543
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1544
1545
1546
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1547
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1548
       "      <td>...</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1549
1550
       "      <td>NaN</td>\n",
       "      <td>OK</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1551
1552
1553
1554
1555
1556
1557
1558
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TABLE FULL</td>\n",
       "      <td>UNKNOWN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1559
1560
1561
1562
1563
       "    </tr>\n",
       "    <tr>\n",
       "      <th>198</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1564
1565
1566
       "      <td>12.215</td>\n",
       "      <td>3.962</td>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1567
1568
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1569
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1570
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1571
1572
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1573
1574
       "      <td>OK</td>\n",
       "      <td>OK</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1575
1576
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1577
1578
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1579
1580
1581
1582
       "      <td>NaN</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>UNKNOWN</td>\n",
       "      <td>UNKNOWN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1583
1584
       "    </tr>\n",
       "    <tr>\n",
Jaime Arias's avatar
Jaime Arias committed
1585
       "      <th>199</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1586
       "      <td>263.468</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1587
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1588
1589
       "      <td>120.204</td>\n",
       "      <td>1.042</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1590
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1591
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1592
       "      <td>245.885</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1593
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1594
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1595
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1596
       "      <td>...</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1597
1598
       "      <td>OK</td>\n",
       "      <td>OK</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1599
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1600
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1601
       "      <td>OK</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1602
1603
1604
1605
1606
       "      <td>TIME LIMIT</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>TABLE FULL</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1607
1608
1609
       "    </tr>\n",
       "    <tr>\n",
       "      <th>200</th>\n",
Jaime Arias's avatar
Jaime Arias committed
1610
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1611
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1612
1613
       "      <td>194.795</td>\n",
       "      <td>0.388</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1614
1615
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1616
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1617
1618
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1619
       "      <td>NaN</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1620
       "      <td>...</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1621
1622
       "      <td>OK</td>\n",
       "      <td>OK</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1623
1624
1625
1626
1627
1628
1629
1630
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>TIME LIMIT</td>\n",
       "      <td>TABLE FULL</td>\n",
       "      <td>TIME LIMIT</td>\n",
Jaime Arias's avatar
Jaime Arias committed
1631
1632
1633
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
Jaime Arias's avatar
Jaime Arias committed
1634
       "<p>200 rows × 48 columns</p>\n",
Jaime Arias's avatar
Jaime Arias committed
1635
1636
1637
       "</div>"
      ],
      "text/plain": [
Jaime Arias's avatar
Jaime Arias committed
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
       "                                            time                               \\\n",
       "tool            pmc-sog_otfC_couv99-default_1_16 pmc-sog_otfC_couv99-shy_1_16   \n",
       "model   formula                                                                 \n",
       "robot20 1                                    NaN                          NaN   \n",
       "        2                                  0.714                          NaN   \n",
       "        3                                    NaN                      271.853   \n",
       "        4                                  0.022                        0.023   \n",
       "        5                                    NaN                        7.658   \n",
       "...                                          ...                          ...   \n",
       "        196                                  NaN                          NaN   \n",
       "        197                                  NaN                          NaN   \n",
       "        198                                  NaN                          NaN   \n",
       "        199                              263.468                          NaN   \n",
       "        200                                  NaN                          NaN   \n",
       "\n",
       "                                                   \\\n",
       "tool            pmc-sog_otfPR_couv99-default_1_16   \n",
       "model   formula                                     \n",
       "robot20 1                                     NaN   \n",
       "        2                                   0.915   \n",
       "        3                                     NaN   \n",
       "        4                                   0.015   \n",
       "        5                                  81.240   \n",
       "...                                           ...   \n",
       "        196                                 1.149   \n",
       "        197                                   NaN   \n",
       "        198                                12.215   \n",
       "        199                               120.204   \n",
       "        200                               194.795   \n",
       "\n",
       "                                               \\\n",
       "tool            pmc-sog_otfPR_couv99-shy_1_16   \n",
       "model   formula                                 \n",
       "robot20 1                               2.737   \n",
       "        2                               0.883   \n",
       "        3                             266.638   \n",
       "        4                               0.015   \n",
       "        5                               7.984   \n",
       "...                                       ...   \n",
       "        196                             0.110   \n",