Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Langford <jl@hunch.net>2011-08-02 21:56:24 +0400
committerJohn Langford <jl@hunch.net>2011-08-02 21:56:24 +0400
commit0554f14079f6cc1a5650921f49ffb0923dde843f (patch)
tree44ab78451eb0b84107d79ffebbdf1ac1a2353318 /bfgs.cc
parent1388de4ebe07d3a55a3a5833f95d10ddf7ca8131 (diff)
patch from Ariel eliminates compile warning
Diffstat (limited to 'bfgs.cc')
-rw-r--r--bfgs.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfgs.cc b/bfgs.cc
index 600dc870..ca17e8c4 100644
--- a/bfgs.cc
+++ b/bfgs.cc
@@ -524,7 +524,7 @@ void setup_bfgs(gd_thread_params t)
if (!global.quiet)
{
- fprintf(stderr, "m = %d\nAllocated %dM for weights and mem\n", m, global.length()*(sizeof(float)*(2*m+BFGS_EXTRA)+sizeof(weight)*global.stride) >> 20);
+ fprintf(stderr, "m = %d\nAllocated %luM for weights and mem\n", m, global.length()*(sizeof(float)*(2*m+BFGS_EXTRA)+sizeof(weight)*global.stride) >> 20);
}
node_socks socks;
@@ -572,7 +572,7 @@ void setup_bfgs(gd_thread_params t)
if (global.regularization > 0.)
loss_sum += add_regularization(reg,global.regularization);
if (!global.quiet)
- fprintf(stderr, "%2d %-f\t", current_pass+1, loss_sum / importance_weight_sum);
+ fprintf(stderr, "%2lu %-f\t", current_pass+1, loss_sum / importance_weight_sum);
if (ec->pass != 0)
{
@@ -597,7 +597,7 @@ void setup_bfgs(gd_thread_params t)
if (global.regularization > 0.)
loss_sum += add_regularization(reg,global.regularization);
if (!global.quiet)
- fprintf(stderr, "%2d %-f\t", current_pass+1, loss_sum / importance_weight_sum);
+ fprintf(stderr, "%2lu %-f\t", current_pass+1, loss_sum / importance_weight_sum);
double new_step = wolfe_eval(reg, mem, loss_sum, previous_loss_sum, step_size, importance_weight_sum);
/********************************************************************/