-
Notifications
You must be signed in to change notification settings - Fork 8
/
args.py
36 lines (33 loc) · 1.44 KB
/
args.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import argparse
def parse_args():
parser = argparse.ArgumentParser()
# Dataset
parser.add_argument('--dataset', type=str, default='Cora',
help='Dataset Name')
parser.add_argument('--imb_ratio', type=float, default=10,
help='Imbalance Ratio')
# Architecture
parser.add_argument('--net', type=str, default='GCN',
help='Architecture name')
parser.add_argument('--n_layer', type=int, default=2,
help='the number of layers')
parser.add_argument('--feat_dim', type=int, default=256,
help='Feature dimension')
# GAT
parser.add_argument('--n_head', type=int, default=8,
help='the number of heads in GAT')
# Imbalance Loss
parser.add_argument('--loss_type', type=str, default='ce',
help='Loss type')
# Method
parser.add_argument('--ens', action='store_true',
help='Mixing node')
# Hyperparameter for our approach
parser.add_argument('--keep_prob', type=float, default=0.01,
help='Keeping Probability')
parser.add_argument('--pred_temp', type=float, default=2,
help='Prediction temperature')
parser.add_argument('--warmup', type=int, default=1,
help='warmup')
args = parser.parse_args()
return args