Skip to content

Commit

Permalink
added gamma option
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikhil Pimpalkhare authored and Nikhil Pimpalkhare committed Oct 13, 2020
1 parent d39b9c7 commit b1b89ad
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/medley
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,13 @@ def main():
default="both"
)

global_parser.add_argument(
"--gamma",
help="gamma parameter for exp3",
type=float,
default=0.07
)

args = global_parser.parse_args()

if not args.output.endswith(".csv"):
Expand Down Expand Up @@ -174,7 +181,7 @@ def main():
classifier = Preset(args.preset)
timeout_manager = Constant(args.timeout)
elif args.classifier == "exp3":
classifier = Exp3(0.07)
classifier = Exp3(args.gamma)
elif args.classifier == "knearest":
classifier = KNearest(args.k, args.epsilon, args.epsilon_decay)
else:
Expand Down

0 comments on commit b1b89ad

Please sign in to comment.