Skip to content

Commit

Permalink
Fixes #22: final commit to cover randomization tests for softmax
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoang29 committed Oct 6, 2014
1 parent 97ee4b5 commit e79bdd2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions explore/tests/MWTExploreTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ namespace vw_explore_tests
u32 i;
for (i = 0; i < num_decisions; i++)
{
pair<u32, u64> action_and_key = m_mwt->Choose_Action_And_Key(*m_context);
u32 action = m_mwt->Choose_Action(*m_context, this->Get_Unique_Key(i + 1));
// Action IDs are 1-based
actions[action_and_key.first - 1]++;
actions[MWTAction::Make_ZeroBased(action)]++;
}
// Ensure all actions are covered
for (i = 0; i < m_num_actions; i++)
Expand Down Expand Up @@ -206,9 +206,9 @@ namespace vw_explore_tests
u32 i;
for (i = 0; i < num_decisions; i++)
{
pair<u32, u64> action_and_key = m_mwt->Choose_Action_And_Key(*m_context);
u32 action = m_mwt->Choose_Action(*m_context, this->Get_Unique_Key(i + 1));
// Action IDs are 1-based
actions[action_and_key.first - 1]++;
actions[MWTAction::Make_ZeroBased(action)]++;
}
// Ensure all actions are covered
for (i = 0; i < m_num_actions; i++)
Expand Down

0 comments on commit e79bdd2

Please sign in to comment.