HW03: Report added

This commit is contained in:
Christos Choutouridis
2025-07-05 23:45:14 +03:00
parent 7209681b34
commit 231cc24cea
8 changed files with 446 additions and 5 deletions
+3 -3
View File
@@ -50,6 +50,6 @@ def run_demo1():
if __name__ == '__main__':
run_demo1()
# Uncomment to compare with sklearn.cluster.spectral_clustering -- With normalized Laplacian btw!
#print("")
#for k in [2, 3, 4]:
# compare_with_sklearn(k, False)
print("")
for k in [2, 3, 4]:
compare_with_sklearn(k, False)
+2 -2
View File
@@ -121,8 +121,8 @@ def _test_2(plot : bool = False):
if __name__ == '__main__':
# If you have TkAgg you can pass True, otherwise pass False
_test_1(True)
_test_2(True)
_test_1(False)
_test_2(False)
+1
View File
@@ -201,6 +201,7 @@ def _test_n_cuts_req(plot: bool = False):
#print("Saved result to: ncuts_recursive_d2b.png")
if __name__ == '__main__':
# If you have TkAgg you can pass plot=True, otherwise pass False
for k in [2, 3, 4]:
_test_n_cuts(k, False)