예제 #1
0
 private static TrainingSet createTrainingSetFromResources(IEnumerable<KeyValuePair<User, double[]>> studentsAndMarks)
 {
     TrainingSet resultTrainingSet = new TrainingSet(studentsAndMarks.First().Value.Length);
     foreach (KeyValuePair<User, double[]> studentAndMark in studentsAndMarks)
     {
         resultTrainingSet.addRecord(studentAndMark.Value);
     }
     return resultTrainingSet;
 }