public AnnVisualizerForm(NeuralNetwork ann) { _ann = ann; InitializeComponent(); ResizeEnd += AnnVisualizerForm_Resize; Paint += AnnVisualizerForm_Paint; var tlayer = new NeuralLayer(1); Neuron input = new NeuronInput(tlayer, "X"); tlayer.Neurons.Add(input); _transferFunc = new Neuron(tlayer, new NeuralLayer(0), "transfer"); _transferFunc.Weights[0].X = 1.0; Recompute(); }
public AnnVisualizerForm(NeuralNetwork ann) { _ann = ann; InitializeComponent(); ResizeEnd += AnnVisualizerForm_Resize; Paint += AnnVisualizerForm_Paint; var tlayer = new NeuralLayer(1); Neuron input = new NeuronInput(tlayer, "X"); tlayer.Neurons.Add(input); _transferFunc = new Neuron(tlayer, new NeuralLayer(0), "transfer"); _transferFunc.Weights[0].X = 1.0; Recompute(); }