Skip to content

Commit 0bea5c0

Browse files
committed
beta arg
1 parent 651aaea commit 0bea5c0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Baselines/gp_user2Lquestion.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
parser.add_argument("--only_use_features", default=None, type=str,
4242
help="Pass a quoted string with feature names (as in the dataframes returned by the gp feature set) seperated by spaces. Only these features will then be used.")
4343
# e.g. --only_use_features "votes_sd affinity_sum tag_popularity votes_mean question_age"
44+
parser.add_argument("--beta", default=0.4, type=float, metavar="b",
45+
help="beta parameter for exploration (0=no exploration)")
4446

4547
parser.add_argument("--sum_file_path", default="../cache/gp/runs/")
4648
parser.add_argument("--save_every_n", default=1000, type=int)
@@ -64,7 +66,7 @@
6466
start_time_online_learning = data_utils.make_datetime("01.01.2015 00:01")
6567
hour_threshold_suggested_answer = 24
6668
sigma = 1
67-
beta = 0.4
69+
beta = args.beta
6870
n_preds = 5
6971

7072
## The following flags only take affect if you redo the all_events.pickle file. i.e. redo_database_dumps =True

0 commit comments

Comments
 (0)