diff options
author | John Langford <jl@hunch.net> | 2014-12-16 05:29:40 +0300 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2014-12-16 05:29:40 +0300 |
commit | b24644f050c5a6f24960072c45f8bdafd40b0363 (patch) | |
tree | b893a8dc40fc900788de43c194a56129b3ac7a91 /vowpalwabbit | |
parent | fa5a9050d985dea25aa3913482df7103dd7e415e (diff) |
used casting to disambiguate to_string
Diffstat (limited to 'vowpalwabbit')
-rw-r--r-- | vowpalwabbit/cbify.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vowpalwabbit/cbify.cc b/vowpalwabbit/cbify.cc index c387c579..d29174d9 100644 --- a/vowpalwabbit/cbify.cc +++ b/vowpalwabbit/cbify.cc @@ -170,7 +170,7 @@ namespace CBIFY { vwc.l = &base; vwc.e = &ec; - uint32_t action = data.mwt_explorer->Choose_Action(*data.tau_explorer.get(), to_string((u64)ec.example_counter), vwc); + uint32_t action = data.mwt_explorer->Choose_Action(*data.tau_explorer.get(), to_string((unsigned long long)ec.example_counter), vwc); ec.loss = loss(ld.label, action); if (vwc.recorded && is_learn) @@ -196,7 +196,7 @@ namespace CBIFY { vw_context vwc; vwc.l = &base; vwc.e = &ec; - data.mwt_explorer->Choose_Action(*data.greedy_explorer.get(), to_string((u64)ec.example_counter), vwc); + data.mwt_explorer->Choose_Action(*data.greedy_explorer.get(), to_string((unsigned long long)ec.example_counter), vwc); u32 action = data.recorder->Get_Action(); float prob = data.recorder->Get_Prob(); @@ -224,7 +224,7 @@ namespace CBIFY { vw_context context; context.l = &base; context.e = &ec; - uint32_t action = data.mwt_explorer->Choose_Action(*data.bootstrap_explorer.get(), to_string((u64)ec.example_counter), context); + uint32_t action = data.mwt_explorer->Choose_Action(*data.bootstrap_explorer.get(), to_string((unsigned long long)ec.example_counter), context); assert(action != 0); if (is_learn) @@ -317,7 +317,7 @@ namespace CBIFY { vw_context cp; cp.data = &data; cp.e = &ec; - uint32_t action = data.mwt_explorer->Choose_Action(*data.generic_explorer.get(), to_string((u64)ec.example_counter), cp); + uint32_t action = data.mwt_explorer->Choose_Action(*data.generic_explorer.get(), to_string((unsigned long long)ec.example_counter), cp); if (is_learn) { |