Skip to content

Commit d034c1a

Browse files
committed
first edition of slides
1 parent 122255b commit d034c1a

File tree

5 files changed

+50
-38
lines changed

5 files changed

+50
-38
lines changed

code/GCN.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,15 @@ def train_model_diversity(
352352
pass
353353

354354
plt.figure(figsize=(12, 6))
355+
356+
plt.rc('font', size=16) # controls default text sizes
357+
plt.rc('axes', titlesize=16) # fontsize of the axes title
358+
plt.rc('axes', labelsize=16) # fontsize of the x and y labels
359+
plt.rc('xtick', labelsize=16) # fontsize of the tick labels
360+
plt.rc('ytick', labelsize=16) # fontsize of the tick labels
361+
plt.rc('legend', fontsize=16) # legend fontsize
362+
plt.rc('figure', titlesize=16) # fontsize of the figure title
363+
355364
plt.plot(
356365
range(1, len(train_losses) + 1),
357366
train_losses,
@@ -451,6 +460,15 @@ def train_model_accuracy(
451460
pass
452461

453462
plt.figure(figsize=(12, 6))
463+
464+
plt.rc('font', size=16) # controls default text sizes
465+
plt.rc('axes', titlesize=16) # fontsize of the axes title
466+
plt.rc('axes', labelsize=16) # fontsize of the x and y labels
467+
plt.rc('xtick', labelsize=16) # fontsize of the tick labels
468+
plt.rc('ytick', labelsize=16) # fontsize of the tick labels
469+
plt.rc('legend', fontsize=16) # legend fontsize
470+
plt.rc('figure', titlesize=16) # fontsize of the figure title
471+
454472
plt.plot(
455473
range(1, len(train_losses) + 1),
456474
train_losses,
@@ -466,6 +484,7 @@ def train_model_accuracy(
466484
plt.title("Training and Validation Loss Over Epochs")
467485
plt.xlabel("Epoch")
468486
plt.ylabel("Loss")
487+
plt.ylim(0, 0.002)
469488
plt.grid(True)
470489
plt.legend()
471490
plt.show()

code/gcn-training.ipynb

Lines changed: 31 additions & 38 deletions
Large diffs are not rendered by default.
42.2 KB
Loading
61.6 KB
Loading
104 KB
Binary file not shown.

0 commit comments

Comments
 (0)