main
Brett 2024-11-19 19:39:57 -05:00
parent 2cb87c6b08
commit 0dd9cade42
4 changed files with 22 additions and 2 deletions

View File

@ -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)

BIN
errors-quantization25.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
errors-topological25.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -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))