Skip to content

Commit de5b520

Browse files
Fix arguments
1 parent 55b24a8 commit de5b520

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def main():
8080

8181
# Algorithm
8282
parser.add_argument('--submodular', default="GraphCut", help="specifiy submodular function to use")
83+
parser.add_argument('--submodular_greedy', default="LazyGreedy", help="specifiy greedy algorithm for submodular optimization")
8384
parser.add_argument('--uncertainty', default="Entropy", help="specifiy uncertanty score to use")
8485

8586
# Checkpoint and resumption
@@ -154,7 +155,7 @@ def main():
154155
selection_args = dict(epochs=args.selection_epochs,
155156
selection_method=args.uncertainty,
156157
balance=args.balance,
157-
greedy="LazyGreedy",
158+
greedy=args.submodular_greedy,
158159
function=args.submodular
159160
)
160161
method = methods.__dict__[args.selection](dst_train, args, args.fraction, args.seed, **selection_args)

0 commit comments

Comments
 (0)