From a7046efcb85cb183790f9fcbda1f80c794cb5ca7 Mon Sep 17 00:00:00 2001 From: SamuelDiai Date: Thu, 1 Apr 2021 18:34:10 +0200 Subject: [PATCH] . --- animals.py | 2 +- basic_experiments.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/animals.py b/animals.py index c6d4a5f..14cb8e6 100644 --- a/animals.py +++ b/animals.py @@ -32,7 +32,7 @@ def animals(k, n_iter, alpha, beta): mapping[i] = animals_names[i, 0] G = nx.relabel_nodes(G, mapping) - fig = plt.figure(figsize=(15,15)) + fig = plt.figure(figsize=(10,10)) nx.draw(G, with_labels=True, font_weight='bold') plt.title("Learned graph for the animal dataset k=%s n_iter=%s alpha=%.3f beta=%.3f" % (k , n_iter, alpha, beta)) filename = os.path.join(plots_dir, 'animals', 'graph') diff --git a/basic_experiments.py b/basic_experiments.py index bb3879e..c67fd6f 100644 --- a/basic_experiments.py +++ b/basic_experiments.py @@ -57,7 +57,7 @@ def load_dataset_and_sgl(dataset, k, k_sgl, n): norm_weights = norm_weights # plot graph - fig = plt.figure(figsize=(15,15)) + fig = plt.figure(figsize=(10,10)) nx.draw_networkx(G,pos, width=norm_weights) plt.title("Learned graph for %s dataset" % dataset) plt.suptitle('SGL components k_sgl=%s, Real components k=%s' % (k_sgl, k))