private void InitializeNN(List <Tuple <int, NeuronType> > layout) { _nn = new FFNeuralNetwork(new Random()); _nn.Initialize(layout); NNVis.Initialize(_nn); NN_Export_btn.IsEnabled = true; NN_toolBar.IsEnabled = true; }
private void InitializeNN(JObject jnn) { _nn = new FFNeuralNetwork(new Random()); if (!_nn.Initialize(jnn)) { _nn = null; return; } NNVis.Initialize(_nn); NN_Export_btn.IsEnabled = true; NN_toolBar.IsEnabled = true; }