aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_elements/graph/graph.component.html
diff options
context:
space:
mode:
authorDanijel Anđelković <adanijel99@gmail.com>2022-04-29 00:44:09 +0200
committerDanijel Anđelković <adanijel99@gmail.com>2022-04-29 00:44:09 +0200
commit9d73bc044eaea6176556935a81db8e654476e6f1 (patch)
treee7a5b8f2ff85d14933df73c1a30ef47ac2a13973 /frontend/src/app/_elements/graph/graph.component.html
parent1b9e3a2470d1123b362ad47725bd76b2eb7b39eb (diff)
Promenio liniju u grafu modela na bezier krivu, dodao ispis ulazne kolone / aktivacione funkcije sloja na hoveru preko cvora.
Diffstat (limited to 'frontend/src/app/_elements/graph/graph.component.html')
-rw-r--r--frontend/src/app/_elements/graph/graph.component.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/frontend/src/app/_elements/graph/graph.component.html b/frontend/src/app/_elements/graph/graph.component.html
index b8220115..19e5c14a 100644
--- a/frontend/src/app/_elements/graph/graph.component.html
+++ b/frontend/src/app/_elements/graph/graph.component.html
@@ -1,3 +1,8 @@
-<div #graphWrapper class="w-100" style="height: 14rem;">
+<div #graphWrapper class="w-100 position-relative" style="height: 14rem;">
+ <ng-container *ngFor="let layer of layers; let i = index">
+ <div class="node-text" *ngFor="let node of layer; let j = index" [style.left.%]="node.x * 99.4" [style.top.%]="node.y * 100">
+ {{ i == 0 ? (inputColumns ? inputColumns[j] : 'nepoznato') : (i > 0 && i
+ < layers.length - 1 ? model!.layers[i-1].activationFunction : (i==layers.length - 1 ? 'out' : '')) }} </div>
+ </ng-container>
<canvas #graphCanvas></canvas>
-</div> \ No newline at end of file
+ </div> \ No newline at end of file