示例#1
0
        private void SetActions(GraphMap <FeatureVector> .Box box)
        {
            if (box.Data.layer != Layer.OUTPUT)
            {
                box.AddAction("Link", self =>
                {
                    gm.SelectNode(node =>
                    {
                        if (node.Data.layer != Layer.INPUT)
                        {
                            self.LinkTo(node);
                        }
                    });
                });
            }

            box.AddAction("Edit", self =>
            {
                EditFeatureVector editfv = new EditFeatureVector(self.Data);
                editfv.ShowDialog();
                self.Data.size = editfv.NumOfUnits;
                self.Data.name = editfv.FVName;
                self.Name      = editfv.FVName;
            });
        }
示例#2
0
文件: Neurone.cs 项目: Sorenly/neuron
        private void btn_addLinOutputLayer_Click(object sender, EventArgs e)
        {
            EditFeatureVector efv = new EditFeatureVector(new FeatureVector());

            efv.ShowDialog();
            CreateLayer(efv.FVName, efv.NumOfUnits, FeatureVectorType.OUTPUTLIN);
        }
示例#3
0
        private void btn_add_Click(object sender, EventArgs e)
        {
            EditFeatureVector efv = new EditFeatureVector(new FeatureVector());
            efv.ShowDialog();

            var box = gm.AddBox(Color.LightGreen, new FeatureVector() { name = efv.FVName, layer = Layer.INPUT, type = FeatureVectorType.LOGISTIC, size = efv.NumOfUnits }, x => x.name + " " + x.size + " units");
            SetActions(box);
        }
示例#4
0
        private void btn_addLogHiddenLayer_Click(object sender, EventArgs e)
        {
            EditFeatureVector efv = new EditFeatureVector(new FeatureVector());
            efv.ShowDialog();

            var box = gm.AddBox(Color.Pink, new FeatureVector() { name = efv.FVName, layer = Layer.HIDDEN, type = FeatureVectorType.LOGISTIC, size = efv.NumOfUnits }, x => x.name + " (Logistic " + x.size + " units )");
            SetActions(box);
        }
示例#5
0
文件: Neurone.cs 项目: Sorenly/neuron
        private void btn_addLogHiddenLayer_Click(object sender, EventArgs e)
        {
            EditFeatureVector efv = new EditFeatureVector(new FeatureVector());

            efv.ShowDialog();

            CreateLayer(efv.FVName, efv.NumOfUnits, FeatureVectorType.HIDDENLOG);
        }
示例#6
0
        private void btn_addLinHiddenLayer_Click(object sender, EventArgs e)
        {
            EditFeatureVector efv = new EditFeatureVector(new FeatureVector());

            efv.ShowDialog();

            var box = gm.AddBox(Color.Pink, new FeatureVector()
            {
                name = efv.FVName, layer = Layer.HIDDEN, type = FeatureVectorType.LINEAR, size = efv.NumOfUnits
            }, x => x.name + " (Linear " + x.size + " units )");

            SetActions(box);
        }
示例#7
0
        private void btn_add_Click(object sender, EventArgs e)
        {
            EditFeatureVector efv = new EditFeatureVector(new FeatureVector());

            efv.ShowDialog();

            var box = gm.AddBox(Color.LightGreen, new FeatureVector()
            {
                name = efv.FVName, layer = Layer.INPUT, type = FeatureVectorType.LOGISTIC, size = efv.NumOfUnits
            }, x => x.name + " " + x.size + " units");

            SetActions(box);
        }
示例#8
0
        private void SetActions(GraphMap<FeatureVector>.Box box)
        {
            if (box.Data.layer != Layer.OUTPUT)
            {
                box.AddAction("Link", self =>
                {
                    gm.SelectNode(node =>
                    {
                        if (node.Data.layer != Layer.INPUT)
                        {
                            self.LinkTo(node);
                        }
                    });
                });
            }

            box.AddAction("Edit", self =>
            {
                EditFeatureVector editfv = new EditFeatureVector(self.Data);
                editfv.ShowDialog();
                self.Data.size = editfv.NumOfUnits;
                self.Data.name = editfv.FVName;
                self.Name = editfv.FVName;
            });
        }
示例#9
0
        private void btn_add_Click(object sender, EventArgs e)
        {
            EditFeatureVector efv = new EditFeatureVector(new FeatureVector());
            efv.ShowDialog();

            CreateLayer(efv.FVName, efv.NumOfUnits, FeatureVectorType.INPUTLOG);
        }
示例#10
0
 private void btn_addLinHiddenLayer_Click(object sender, EventArgs e)
 {
     EditFeatureVector efv = new EditFeatureVector(new FeatureVector());
     efv.ShowDialog();
     CreateLayer(efv.FVName, efv.NumOfUnits, FeatureVectorType.HIDDENLIN);
 }