diff --git a/CMakeLists.txt b/CMakeLists.txt index cc7c100..0e6f9ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(COSC-4P80-Assignment-3 VERSION 0.0.23) +project(COSC-4P80-Assignment-3 VERSION 0.0.24) include(FetchContent) option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF) diff --git a/errors-quantization25.png b/errors-quantization25.png new file mode 100644 index 0000000..9cea030 Binary files /dev/null and b/errors-quantization25.png differ diff --git a/errors-topological25.png b/errors-topological25.png new file mode 100644 index 0000000..032de22 Binary files /dev/null and b/errors-topological25.png differ diff --git a/plot_line_graph.py b/plot_line_graph.py index ef4596b..4495580 100644 --- a/plot_line_graph.py +++ b/plot_line_graph.py @@ -21,7 +21,7 @@ if split.lower() == "false": fig, ax1 = plt.subplots() ax1.plot(data1, color='b', label='Topological Error') - ax1.set_xlabel('Epochs') + ax1.set_xlabel('Epoch') ax1.set_ylabel('Error %', color='b') ax1.tick_params(axis='y', labelcolor='b') ax1.set_ylim(0, 1) @@ -39,3 +39,23 @@ if split.lower() == "false": plt.savefig("errors{}.png".format(bins)) else: plt.plot(data1, color='b', label='Topological Error') + plt.xlabel('Epoch') + plt.ylabel('Error %', color='b') + plt.tick_params(axis='y', labelcolor='b') + plt.ylim(0, 1) + + plt.title("Topological Error (Bins: {})".format(bins)) + + plt.savefig("errors-topological{}.png".format(bins)) + + plt.plot(data2, color='b', label='Quantization Error') + plt.xlabel('Epoch') + plt.ylabel('Incorrect BMU', color='b') + plt.tick_params(axis='y', labelcolor='b') + plt.ylim(y_min, y_max) + + plt.title("Quantization Error (Bins: {})".format(bins)) + + plt.savefig("errors-quantization{}.png".format(bins)) + +