Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
antongiacomo committed Apr 4, 2024
1 parent 5ed218d commit 332907b
Show file tree
Hide file tree
Showing 185 changed files with 21,639 additions and 317 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

15 changes: 8 additions & 7 deletions Images/graphs/Data Aggegation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 1,
"metadata": {
"ExecuteTime": {
"end_time": "2024-02-16T16:52:56.556745Z",
Expand Down Expand Up @@ -47,7 +47,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -61,6 +61,7 @@
")\n",
"mycursor = mydb.cursor()\n",
"TABLE = \"pippo.gamma_10nodes\"\n",
"FOLDER = \"data\"\n",
"MAX_NUMBER_OF_NODES = 10\n",
"MAX_NUMBER_OF_SERVICES = 4\n",
"\n",
Expand Down Expand Up @@ -112,7 +113,7 @@
" result_dict[number_of_services].append(execution_time)\n",
"\n",
"# Print the formatted output\n",
"with open(f\"10_exhaustive_performance_{TABLE}.dat\", \"w\") as file:\n",
"with open(f\"{FOLDER}/exhaustive_performance_{TABLE}.dat\", \"w\") as file:\n",
" for number_of_nodes, execution_times in result_dict.items():\n",
" starred = \" \".join(map(str, execution_times))\n",
" file.write(f\"{number_of_nodes} {starred}\\n\")\n",
Expand Down Expand Up @@ -270,7 +271,7 @@
" else:\n",
" result_dict[window_size][number_of_services].append(execution_time)\n",
"\n",
" with open(f\"window_time_performance_{TABLE}_n{n}.dat\", \"w\") as file:\n",
" with open(f\"{FOLDER}/window_time_performance_{TABLE}_n{n}.dat\", \"w\") as file:\n",
" for window_size, services in result_dict.items():\n",
" for number_of_services, execution_times in services.items():\n",
" starred = \" \".join(map(str, execution_times))\n",
Expand Down Expand Up @@ -403,7 +404,7 @@
" result_dict[number_of_services].append(execution_time)\n",
"\n",
" # Print the formatted output\n",
" with open(f\"10_window_quality_performance_{TABLE}_n{n}_w{w}.dat\", \"w\") as file:\n",
" with open(f\"{FOLDER}/window_quality_performance_{TABLE}_n{n}_w{w}.dat\", \"w\") as file:\n",
" for number_of_nodes, execution_times in result_dict.items():\n",
" starred = \" \".join(map(str, execution_times))\n",
" file.write(f\"{number_of_nodes} {starred}\\n\")\n",
Expand Down Expand Up @@ -454,7 +455,7 @@
" result_dict[number_of_services].append(execution_time)\n",
"\n",
" # Print the formatted output\n",
" with open(f\"window_percentage_performance_n{n}_w{w}.dat\", \"w\") as file:\n",
" with open(f\"{FOLDER}/window_percentage_performance_n{n}_w{w}.dat\", \"w\") as file:\n",
" for number_of_nodes, execution_times in result_dict.items():\n",
" starred = \" \".join(map(str, execution_times))\n",
" file.write(f\"{wino} {number_of_nodes} {starred}\\n\")\n",
Expand Down Expand Up @@ -515,7 +516,7 @@
" result_dict[number_of_services].append(execution_time)\n",
"\n",
" # Print the formatted output\n",
" with open(f\"window_percentage_performance_n{n}_w{w}.dat\", \"w\") as file:\n",
" with open(f{FOLDER}/\"window_percentage_performance_n{n}_w{w}.dat\", \"w\") as file:\n",
" for number_of_nodes, execution_times in result_dict.items():\n",
" starred = \" \".join(map(str, execution_times))\n",
" file.write(f\"{number_of_nodes} {starred}\\n\")\n",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
2.0 0.2127353757082053
3.0 0.18208768642746306
4.0 0.145478988997837
5.0 0.14389038610497892
5.0 0.12990639184831418
6.0 0.11896547522445461
7.0 0.10415010654195088
Loading

0 comments on commit 332907b

Please sign in to comment.