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:
authorU-NORTHAMERICA\jcl <jcl@JCL.northamerica.corp.microsoft.com>2014-07-11 23:39:44 +0400
committerU-NORTHAMERICA\jcl <jcl@JCL.northamerica.corp.microsoft.com>2014-07-11 23:39:44 +0400
commitce359a281a64c0745911931a75b6b503fbac64ac (patch)
treed7a1e7957c78f2bb9a1c2c4ab606e69a7ff3822f
parentd7a2170b023de47c7a4eac31743ae2973477f80c (diff)
windows compile tweaks
-rw-r--r--vowpalwabbit/gd.cc4
-rw-r--r--vowpalwabbit/vw_static.vcxproj2
2 files changed, 4 insertions, 2 deletions
diff --git a/vowpalwabbit/gd.cc b/vowpalwabbit/gd.cc
index 6991db8d..36beff8b 100644
--- a/vowpalwabbit/gd.cc
+++ b/vowpalwabbit/gd.cc
@@ -75,14 +75,14 @@ namespace GD
if (normalized) {
if (sqrt_rate)
{
- float avg_norm = g.total_weight / g.normalized_sum_norm_x;
+ float avg_norm = (float) g.total_weight / (float) g.normalized_sum_norm_x;
if (adaptive)
return sqrt(avg_norm);
else
return avg_norm;
}
else
- return powf(g.normalized_sum_norm_x / g.total_weight, g.neg_norm_power);
+ return powf( (float) g.normalized_sum_norm_x / (float) g.total_weight, g.neg_norm_power);
}
return 1.f;
}
diff --git a/vowpalwabbit/vw_static.vcxproj b/vowpalwabbit/vw_static.vcxproj
index 2fc8e304..eec82548 100644
--- a/vowpalwabbit/vw_static.vcxproj
+++ b/vowpalwabbit/vw_static.vcxproj
@@ -236,6 +236,7 @@
<ItemGroup>
<ClInclude Include="autolink.h" />
<ClInclude Include="accumulate.h" />
+ <ClInclude Include="active.h" />
<ClInclude Include="allreduce.h" />
<ClInclude Include="bfgs.h" />
<ClInclude Include="binary.h" />
@@ -288,6 +289,7 @@
<ItemGroup>
<ClCompile Include="autolink.cc" />
<ClCompile Include="accumulate.cc" />
+ <ClCompile Include="active.cc" />
<ClCompile Include="allreduce.cc" />
<ClCompile Include="binary.cc" />
<ClCompile Include="bfgs.cc" />