private void Simulation_Load(object sender, EventArgs e) { DateTime date = DateTime.Now; String name = date.ToString("yyyyMMdd-HHmmss"); StreamReader reader = new StreamReader(File.Open("Files\\data.xml", FileMode.Open)); XmlDocument xml = new XmlDocument(); xml.Load(reader); reader.Close(); XmlNode node = xml.ChildNodes.Item(1).FirstChild; Dictionary <Neuron, SequenceNeuron> map = new Dictionary <Neuron, SequenceNeuron>(); foreach (XmlNode xn in node.ChildNodes) { sequences.Add(brain.addSentence(xn.InnerText.ToLower())); } creation.load(sequences); animation.loadBrain(brain); animation.create(creation); charting.loadBrain(brain); display.show(); create(); //animate(); }
public void create(Creation creation) { creation.load(neurons, synapses); Thread thread = new Thread(fastBalancing); thread.Start(); }