diff options
author | Luong Hoang <lhoang@live.com> | 2014-10-17 06:00:20 +0400 |
---|---|---|
committer | Luong Hoang <lhoang@live.com> | 2014-10-17 06:00:20 +0400 |
commit | 63dc009c2c41b970edcefd4da07028c3795be5d9 (patch) | |
tree | 31306032e3150cbdbab6c14fd7f1da1e27a82712 /cs_test | |
parent | 52da4bf945a97335edc0ca673e9287eef874d3e2 (diff) |
#65: renamed Feature.WeightIndex to Index
Diffstat (limited to 'cs_test')
-rw-r--r-- | cs_test/ExploreSample.cs | 6 | ||||
-rwxr-xr-x | cs_test/LabDemo.cs | 2 |
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
|