private void Window_Activated(object sender, EventArgs e)
 {
     learning_Sample   = liveParams.Learning_Sample;
     forTestingPercent = liveParams.ForTestingPercent;
     countOfNets       = liveParams.CountOfNets;
     learningTemp      = liveParams.LearningTemp;
     isEpoch           = liveParams.IsEpoch;
     isCost            = liveParams.IsCost;
     epochCount        = liveParams.Epoch;
     cost      = liveParams.Cost;
     nets      = liveParams.Nets;
     currEpoch = liveParams.CurrEpoch;
     currCost  = liveParams.CurrCost;
     points    = liveParams.Points;
     StopLearning_button.IsEnabled = false;
     ForTesting_textBox.Text       = Convert.ToString(forTestingPercent);
     //CountOfNets_textBox.Text = Convert.ToString(countOfNets);
     learninTemp_textBox.Text   = Convert.ToString(learningTemp);
     Epoch_textBox.Text         = Convert.ToString(epochCount);
     Cost_textBox.Text          = Convert.ToString(cost);
     CurrErrorNum_label.Content = Convert.ToString(currCost);
     CurrEpochNum_label.Content = Convert.ToString(currEpoch);
     Epoch_checkBox.IsChecked   = isEpoch;
     Cost_checkBox.IsChecked    = isCost;
     if (points != null)
     {
         foreach (Point point in points)
         {
             viewModel.Data.Collection.Add(new Point(point.X, point.Y));
         }
     }
 }
 private void LerningSet_window_Activated(object sender, EventArgs e)
 {
     learning_Sample = liveParams.Learning_Sample;
     drawVectors();
     countOfSecretLayers       = liveParams.CountOfSecretLayers;
     SecretLayers_textBox.Text = Convert.ToString(countOfSecretLayers);
     layers = liveParams.Layers;
     createLayers();
     LS_window_ListBox_input.SelectedItem = LS_window_ListBox_input.Items.GetItemAt(0);
 }
 public LiveParams()
 {
     path                = null;
     learning_Sample     = null;
     layers              = new LinkedList <Layer>();
     nets                = new LinkedList <NeuralNetwork>();
     countOfSecretLayers = 0;
     epoch               = 10000;
     forTestingPercent   = 80;
     countOfNets         = 1;
     learningTemp        = 0.01f;
     cost                = 0.5f;
     isCost              = false;
     isEpoch             = false;
     currEpoch           = 0;
     currCost            = 0f;
 }