private void TestNetwork_Click(object sender, EventArgs e) { MatchesCount.Text = BIC.DownloadInfoForTest().ToString(); MatchesCount.Refresh(); var loopCount = int.Parse((LoopCount.Text == string.Empty) ? "1" : LoopCount.Text); NumberOfCircleValue.Refresh(); AverageResultValue.Text = BIC.TestNetwork(); }
/// <summary> /// Sirve como la función hash predeterminada. /// </summary> /// <returns>Código hash para el objeto actual.</returns> public override int GetHashCode() { int hash = 17; // Un número primo int prime = 31; // Otro número primo. hash = hash * prime + MatchesCount.GetHashCode(); hash = hash * prime + ((Value == null) ? 0 : Value.GetHashCode()); hash = hash * prime + Pattern.GetHashCode(); return(hash); }
private void NetworkLearning_Click(object sender, EventArgs e) { MatchesCount.Text = BIC.DownloadInfoForTest().ToString(); MatchesCount.Refresh(); var loopCount = int.Parse((LoopCount.Text == string.Empty)? "1": LoopCount.Text); LearningStatus.Maximum = loopCount; NumberOfCircleValue.Text = 0 + " из " + loopCount; for (int i = 0; i <= loopCount; i++) { NumberOfCircleValue.Text = i + " из " + loopCount; NumberOfCircleValue.Refresh(); AverageResultValue.Text = BIC.LearningNetwork(); AverageResultValue.Refresh(); LearningStatus.Value = i; } BIC.SaveCurrentWeights(); }