Ejemplo n.º 1
0
        private void RefreshSelection()
        {
            if (!_needToBeRefreshed)
            {
                return;
            }

            var selectedElementsToRemove = new List <Element>();

            foreach (var element in _selectedElements)
            {
                var foundElement = _currentInputLayer.Find(element.Id);
                if (foundElement == null)
                {
                    selectedElementsToRemove.Add(element);
                }
            }

            foreach (var selectedElement in selectedElementsToRemove)
            {
                _selectedElements.Remove(selectedElement);
            }

            _needToBeRefreshed = false;
        }
Ejemplo n.º 2
0
        private async void btnChangeValue_Click(object sender, EventArgs e)
        {
            NeuralNetworkVisualizerControl1.SuspendAutoRedraw();

            var edge = _input.Find <Edge>("Input.bias - Hidden.o1");

            edge.Weight = 0.123;

            var node = _input.Nodes.Single(n => n.Id == "e3");

            node.OutputValue = 1.44444;

            await NeuralNetworkVisualizerControl1.ResumeAutoRedraw();
        }