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:
authorLuong Hoang <lhoang@live.com>2014-10-17 06:00:20 +0400
committerLuong Hoang <lhoang@live.com>2014-10-17 06:00:20 +0400
commit63dc009c2c41b970edcefd4da07028c3795be5d9 (patch)
tree31306032e3150cbdbab6c14fd7f1da1e27a82712 /cs_test
parent52da4bf945a97335edc0ca673e9287eef874d3e2 (diff)
#65: renamed Feature.WeightIndex to Index
Diffstat (limited to 'cs_test')
-rw-r--r--cs_test/ExploreSample.cs6
-rwxr-xr-xcs_test/LabDemo.cs2
2 files changed, 4 insertions, 4 deletions
diff --git a/cs_test/ExploreSample.cs b/cs_test/ExploreSample.cs
index 7694c196..dee7d54a 100644
--- a/cs_test/ExploreSample.cs
+++ b/cs_test/ExploreSample.cs
@@ -109,9 +109,9 @@ namespace cs_test
FEATURE[] f = new FEATURE[2];
f[0].X = 0.5f;
- f[0].WeightIndex = 1;
+ f[0].Index = 1;
f[1].X = 0.9f;
- f[1].WeightIndex = 2;
+ f[1].Index = 2;
string otherContext = "Some other context data that might be helpful to log";
CONTEXT context = new CONTEXT(f, otherContext);
@@ -185,7 +185,7 @@ namespace cs_test
FEATURE[] f = new FEATURE[numFeatures];
for (int i = 0; i < numFeatures; i++)
{
- f[i].WeightIndex = (uint)i + 1;
+ f[i].Index = (uint)i + 1;
f[i].X = 0.5f;
}
diff --git a/cs_test/LabDemo.cs b/cs_test/LabDemo.cs
index c11d7ba6..5d007300 100755
--- a/cs_test/LabDemo.cs
+++ b/cs_test/LabDemo.cs
@@ -47,7 +47,7 @@ public class LabDemo
{
FEATURE f = new FEATURE();
//Console.WriteLine("{0}", words[0]);
- f.WeightIndex = UInt32.Parse(words[0]);
+ f.Index = UInt32.Parse(words[0]);
if (words.Length == 2)
f.X = float.Parse(words[1]);
else