Esempio n. 1
0
 private void buttonLoadData_Click(object sender, EventArgs e)
 {
     openDataFile.ShowDialog();
     if (radioRelative.Checked)
     {
         data = parser.GetDeltas(
             parser.ParseFile(openDataFile.FileName)
             );
     }
     else
     {
         data = parser.ParseFile(openDataFile.FileName);
     }
     normalizer            = is_sigmoid ? DataNormalizer.SigmoidNormalizer(data) : DataNormalizer.HyperbolicNormalizer(data);
     data                  = normalizer.GetValues();
     groupTraining.Enabled = true;
 }
Esempio n. 2
0
 public void TestParseFile()
 {
     double[] entries = parser.ParseFile(path_cola);
     Assert.AreEqual(1272, entries.Length);
     MyAssert.CloseTo(29.33, entries[entries.Length - 1]);
 }