January 2012
Intermediate to advanced
396 pages
8h 16m
English
using directive at the beginning:using ClassLibrary1;
Main() method of the console application:static void Main(string[] args) { TextReadHelper helper = new TextReadHelper("C:\\wdata.txt",1,0,","); KNN knnHelper = new KNN(); List<Entry> entries = helper.GetEntries(); foreach (Entry current in entries) knnHelper.Add(current); int k = 3; string tag = knnHelper.Predict(new List<double>(){21.56, 22.39, 142, 1479, 0.111, 0.1159, 0.2439, 0.1389, 0.1726, 0.05623, 1.176, 1.256, 7.673, 158.7, 0.0103, 0.02891, 0.05198, 0.02454,0.01114, 0.004239, 25.45, 26.4, 166.1, 2027, ...Read now
Unlock full access