Skip to content

Commit

Permalink
Trying to improve linear bandit performance
Browse files Browse the repository at this point in the history
  • Loading branch information
gAldeia committed Oct 8, 2024
1 parent 8b80739 commit 133a95e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bandit/linear_thompson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void LinearThompsonSamplingBandit<T>::update(T arm, float reward, VectorXf& cont
B[arm_index] += context * context.transpose();
// cout << "B[arm_index] after update: " << B[arm_index] << endl;

m2_r.row(arm_index) += (context * reward);
m2_r.row(arm_index) += (context * reward).transpose();
// cout << "m2_r.row(arm_index) after update: " << m2_r.row(arm_index) << endl;

B_inv[arm_index] = B[arm_index].inverse();
Expand Down

0 comments on commit 133a95e

Please sign in to comment.