Skip to content

Commit

Permalink
Merge a326d2c into a5962c6
Browse files Browse the repository at this point in the history
  • Loading branch information
palmerlao committed Jul 19, 2019
2 parents a5962c6 + a326d2c commit 0adf015
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/pred-sets/ref/cb_sample_seed.predict
@@ -1,4 +1,4 @@
1:0.5,0:0.5
1:0.5,0:0.5 seed=1234

0:0.5,1:0.5
0:0.5,1:0.5 seed=1234

4 changes: 3 additions & 1 deletion vowpalwabbit/action_score.cc
@@ -1,10 +1,11 @@
#include "v_array.h"
#include "action_score.h"
#include "io_buf.h"
#include "global_data.h"
using namespace std;
namespace ACTION_SCORE
{
void print_action_score(int f, v_array<action_score>& a_s, v_array<char>&)
void print_action_score(int f, v_array<action_score>& a_s, v_array<char>& tag)
{
if (f >= 0)
{
Expand All @@ -16,6 +17,7 @@ void print_action_score(int f, v_array<action_score>& a_s, v_array<char>&)
ss << ',';
ss << a_s[i].action << ':' << a_s[i].score;
}
print_tag(ss, tag);
ss << '\n';
ssize_t len = ss.str().size();
ssize_t t = io_buf::write_file_or_socket(f, ss.str().c_str(), (unsigned int)len);
Expand Down

0 comments on commit 0adf015

Please sign in to comment.