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; }); }
private void btn_addLinOutputLayer_Click(object sender, EventArgs e) { EditFeatureVector efv = new EditFeatureVector(new FeatureVector()); efv.ShowDialog(); CreateLayer(efv.FVName, efv.NumOfUnits, FeatureVectorType.OUTPUTLIN); }
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); }
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); }
private void btn_addLogHiddenLayer_Click(object sender, EventArgs e) { EditFeatureVector efv = new EditFeatureVector(new FeatureVector()); efv.ShowDialog(); CreateLayer(efv.FVName, efv.NumOfUnits, FeatureVectorType.HIDDENLOG); }
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); }
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; }); }
private void btn_add_Click(object sender, EventArgs e) { EditFeatureVector efv = new EditFeatureVector(new FeatureVector()); efv.ShowDialog(); CreateLayer(efv.FVName, efv.NumOfUnits, FeatureVectorType.INPUTLOG); }
private void btn_addLinHiddenLayer_Click(object sender, EventArgs e) { EditFeatureVector efv = new EditFeatureVector(new FeatureVector()); efv.ShowDialog(); CreateLayer(efv.FVName, efv.NumOfUnits, FeatureVectorType.HIDDENLIN); }