HW03: Report added
This commit is contained in:
@@ -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)
|
||||
@@ -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)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user