aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app
diff options
context:
space:
mode:
authorDanijel Anđelković <adanijel99@gmail.com>2022-04-29 00:54:55 +0200
committerDanijel Anđelković <adanijel99@gmail.com>2022-04-29 00:54:55 +0200
commit6cfa4e691fd176c4d7fa67b67307d86bddfd7eeb (patch)
tree5858552a4d31a26802b90d04e4f600181a9ccbe1 /frontend/src/app
parent9d73bc044eaea6176556935a81db8e654476e6f1 (diff)
Dodao responzivnost na dugmice za dodavanje i brisanje slojeva i neurona, ispravio BUG gde je bilo moguce dodati vise neurona za individualni sloj nego za sve slojeve.
Diffstat (limited to 'frontend/src/app')
-rw-r--r--frontend/src/app/_elements/form-model/form-model.component.html10
-rw-r--r--frontend/src/app/_elements/form-model/form-model.component.ts2
2 files changed, 6 insertions, 6 deletions
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 d5187383..76601465 100644
--- a/frontend/src/app/_elements/form-model/form-model.component.html
+++ b/frontend/src/app/_elements/form-model/form-model.component.html
@@ -96,11 +96,11 @@
<div class="ns-col" id="layers-control">
<div>Broj Skrivenih Slojeva</div>
- <button class="btn-clear btn-icon" (click)="addLayer()">
+ <button class="btn-clear btn-icon bubble" (click)="addLayer()">
<mat-icon>add</mat-icon>
</button>
<div>{{newModel.hiddenLayers}}</div>
- <button class="btn-clear btn-icon" (click)="removeLayer()">
+ <button class="btn-clear btn-icon bubble" (click)="removeLayer()">
<mat-icon>remove</mat-icon>
</button>
@@ -120,7 +120,7 @@
<div class="ns-col">
<mat-form-field appearance="fill" class="mat-fix">
- <mat-label>Broj Neurona svih slojeva</mat-label>
+ <mat-label>Broj neurona svih slojeva</mat-label>
<input matInput type="number" min="1" max="18" [(ngModel)]="selectedNumberOfNeurons" (change)="changeAllNumberOfNeurons()">
</mat-form-field>
</div>
@@ -172,11 +172,11 @@
<div class="d-flex flex-row align-items-center justify-content-center tm">
<div class="col-6" style="font-size: 13px;">Broj čvorova</div>
- <button class="btn-clear btn-icon" (click)="addNeuron(i)">
+ <button class="btn-clear btn-icon bubble" (click)="addNeuron(i)">
<mat-icon>add</mat-icon>
</button>
<div class="col-2 text-center">{{newModel.layers[i].neurons}}</div>
- <button class="btn-clear btn-icon" (click)="removeNeuron(i)">
+ <button class="btn-clear btn-icon bubble" (click)="removeNeuron(i)">
<mat-icon>remove</mat-icon>
</button>
</div>
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 e58d1764..2c78cd56 100644
--- a/frontend/src/app/_elements/form-model/form-model.component.ts
+++ b/frontend/src/app/_elements/form-model/form-model.component.ts
@@ -98,7 +98,7 @@ export class FormModelComponent implements AfterViewInit {
}
}
addNeuron(index: number) {
- if (this.newModel.layers[index].neurons < 100) {
+ if (this.newModel.layers[index].neurons < 18) {
this.newModel.layers[index].neurons += 1;
this.updateGraph();
}