aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_elements/metric-view/metric-view.component.ts
diff options
context:
space:
mode:
authorSonja Galovic <galovicsonja@gmail.com>2022-04-19 21:58:00 +0200
committerSonja Galovic <galovicsonja@gmail.com>2022-04-19 21:58:00 +0200
commit092ea8c9a0a80857e2da47abc789d48d79af405a (patch)
tree77ae0c6eeb8785ea9008af8e862beffc98b4bd61 /frontend/src/app/_elements/metric-view/metric-view.component.ts
parent923188daa0c90a07c57ecdc6957fcb569b5aa73a (diff)
parent32d776709f2b5df14dbcfd3f610306a899959851 (diff)
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into dev
Diffstat (limited to 'frontend/src/app/_elements/metric-view/metric-view.component.ts')
-rw-r--r--frontend/src/app/_elements/metric-view/metric-view.component.ts32
1 files changed, 32 insertions, 0 deletions
diff --git a/frontend/src/app/_elements/metric-view/metric-view.component.ts b/frontend/src/app/_elements/metric-view/metric-view.component.ts
new file mode 100644
index 00000000..76dd7d20
--- /dev/null
+++ b/frontend/src/app/_elements/metric-view/metric-view.component.ts
@@ -0,0 +1,32 @@
+import { Component, OnInit } from '@angular/core';
+import { SignalRService } from 'src/app/_services/signal-r.service';
+@Component({
+ selector: 'app-metric-view',
+ templateUrl: './metric-view.component.html',
+ styleUrls: ['./metric-view.component.css']
+})
+export class MetricViewComponent implements OnInit {
+ myAcc:[]=[];
+ myMae:[]=[];
+ myMse:[]=[];
+ myEpochs:[]=[];
+ constructor(private signalRService: SignalRService) { }
+
+ ngOnInit(): void {
+ if(this.signalRService.hubConnection)
+ {
+ this.signalRService.hubConnection.on("NotifyEpoch", (mName: string, mId: string, stat: string, totalEpochs: number, currentEpoch: number) => {
+ console.log(stat)
+ console.log(totalEpochs)
+ const data=JSON.parse(stat)
+ for (let key in data)
+ {
+ let value = data[key];
+ console.log(value)
+ }
+ });
+
+ }
+
+ }
+}