Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelDiai committed Apr 1, 2021
1 parent 6a3dc31 commit a7046ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion animals.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion basic_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit a7046ef

Please sign in to comment.