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; }
public void TestParseFile() { double[] entries = parser.ParseFile(path_cola); Assert.AreEqual(1272, entries.Length); MyAssert.CloseTo(29.33, entries[entries.Length - 1]); }