From bd14a065a0ff288ab13904eb1f6b949b3375d8c4 Mon Sep 17 00:00:00 2001 From: Ognjen Cirkovic Date: Mon, 6 Jun 2022 02:26:11 +0200 Subject: Dodate labele za neurone na pravljenju konfiguracije neuronske mreze.Labele neurona ulaznog i skrivenih slojeva su na hover,a labela izlaznog neuronom se stalno prikazuje. --- frontend/src/app/_elements/form-model/form-model.component.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'frontend/src/app/_elements/form-model/form-model.component.html') diff --git a/frontend/src/app/_elements/form-model/form-model.component.html b/frontend/src/app/_elements/form-model/form-model.component.html index 0d770fc1..55c802e9 100644 --- a/frontend/src/app/_elements/form-model/form-model.component.html +++ b/frontend/src/app/_elements/form-model/form-model.component.html @@ -122,7 +122,8 @@
- + +
-- cgit v1.2.3 From 67151f6cc5fcb9a66fc08a181eb8e1a6acaca733 Mon Sep 17 00:00:00 2001 From: Ognjen Cirkovic Date: Mon, 6 Jun 2022 03:45:11 +0200 Subject: Popravljena console greska pri pravljenju modela , ucitavanju eksperimenta, ucitavanju treniranog modela. Popravljena greska pri crtanju grafa. --- .../app/_elements/form-model/form-model.component.html | 2 +- .../src/app/_elements/form-model/form-model.component.ts | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) (limited to 'frontend/src/app/_elements/form-model/form-model.component.html') diff --git a/frontend/src/app/_elements/form-model/form-model.component.html b/frontend/src/app/_elements/form-model/form-model.component.html index 55c802e9..1f0208fa 100644 --- a/frontend/src/app/_elements/form-model/form-model.component.html +++ b/frontend/src/app/_elements/form-model/form-model.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/frontend/src/app/_elements/form-model/form-model.component.ts b/frontend/src/app/_elements/form-model/form-model.component.ts index f72ce6de..7831f573 100644 --- a/frontend/src/app/_elements/form-model/form-model.component.ts +++ b/frontend/src/app/_elements/form-model/form-model.component.ts @@ -27,11 +27,7 @@ export class FormModelComponent implements AfterViewInit { @Output() editEvent = new EventEmitter(); ngAfterViewInit(): void { - this.lossFunction = this.lossFunctions[this.forProblemType][0]; - this.outputLayerActivationFunction = this.outputLayerActivationFunctions[this.forProblemType][0]; - - this.newModel.lossFunction = this.lossFunction; - this.newModel.outputLayerActivationFunction = this.outputLayerActivationFunction; + } selectFormControl = new FormControl('', Validators.required); @@ -82,10 +78,17 @@ export class FormModelComponent implements AfterViewInit { loadModel(model: Model) { this.newModel = model; this.forProblemType = model.type; + this.lossFunction = this.lossFunctions[this.forProblemType][0]; + this.outputLayerActivationFunction = this.outputLayerActivationFunctions[this.forProblemType][0]; + + this.newModel.lossFunction = this.lossFunction; + this.newModel.outputLayerActivationFunction = this.outputLayerActivationFunction; + this.updateGraph(); } updateGraph() { - this.graph.update(); + if(this.newModel) + this.graph.update(); } removeLayer() { -- cgit v1.2.3