diff --git a/frontend/src/app/modules/algorithm-comparison/components/algorithm-comparison-list/algorithm-comparison-list.component.html b/frontend/src/app/modules/algorithm-comparison/components/algorithm-comparison-list/algorithm-comparison-list.component.html index 2ffb9e30..abee2f73 100644 --- a/frontend/src/app/modules/algorithm-comparison/components/algorithm-comparison-list/algorithm-comparison-list.component.html +++ b/frontend/src/app/modules/algorithm-comparison/components/algorithm-comparison-list/algorithm-comparison-list.component.html @@ -1,37 +1,37 @@ +SPDX-License-Identifier: Apache-2.0 +-->
- - -
-
{{ item.recordName }}
-
- - - -
+ @if (recordsDataService.records$ | async; as records) { @for (item of records; track item; let i = $index) { + +
+
{{ item.recordName }}
+
+ + +
- - +
+
+ } }
diff --git a/frontend/src/app/modules/algorithm-comparison/components/algorithm-comparison-table/algorithm-comparison-table.component.html b/frontend/src/app/modules/algorithm-comparison/components/algorithm-comparison-table/algorithm-comparison-table.component.html index 51d47aff..5ab8f622 100644 --- a/frontend/src/app/modules/algorithm-comparison/components/algorithm-comparison-table/algorithm-comparison-table.component.html +++ b/frontend/src/app/modules/algorithm-comparison/components/algorithm-comparison-table/algorithm-comparison-table.component.html @@ -1,19 +1,19 @@ +SPDX-License-Identifier: Apache-2.0 +--> @@ -27,7 +27,8 @@ {{ record.recordName }}
- + @for (column of displayedColumns.slice(1); track column) { + {{ column | parametersLabel }} @@ -35,6 +36,7 @@ {{ record[column] | emptyTableField }} + } diff --git a/frontend/src/app/modules/algorithm-comparison/components/algorithm-comparison/algorithm-comparison.component.html b/frontend/src/app/modules/algorithm-comparison/components/algorithm-comparison/algorithm-comparison.component.html index 6dc3b3fe..e533ab37 100644 --- a/frontend/src/app/modules/algorithm-comparison/components/algorithm-comparison/algorithm-comparison.component.html +++ b/frontend/src/app/modules/algorithm-comparison/components/algorithm-comparison/algorithm-comparison.component.html @@ -1,19 +1,19 @@ +SPDX-License-Identifier: Apache-2.0 +-->

Algorithm Comparison for

@@ -22,11 +22,11 @@
- + @for (algorithmType of algorithmTypesOptions; track algorithmType.key) { + {{ algorithmType.value }} + }
@@ -46,23 +46,18 @@
- - -
- -
- - - -
- -
- - -
- - -
- -
-
+@if ((recordsDataService.records$ | async)!.length > 0) { + +
+ +
+ +
+ +
+ +} @else { +
+ +
+} diff --git a/frontend/src/app/modules/algorithm-comparison/components/algorithm-comparison/algorithm-comparison.component.ts b/frontend/src/app/modules/algorithm-comparison/components/algorithm-comparison/algorithm-comparison.component.ts index 062de3d9..2d101af9 100644 --- a/frontend/src/app/modules/algorithm-comparison/components/algorithm-comparison/algorithm-comparison.component.ts +++ b/frontend/src/app/modules/algorithm-comparison/components/algorithm-comparison/algorithm-comparison.component.ts @@ -18,7 +18,6 @@ import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'; import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'; import { take } from 'rxjs'; -import { KeyValueObject } from '../../../../services/client/models/key-value/key-value.interface-dto'; import { AlgorithmType } from '../../../model-compression/models/enums/algorithms.enum'; import { DrawerClose, DrawerService, DrawerStatus } from '../../../shared/components/ms-drawer'; import { DrawerActionTypeEnum } from '../../../shared/components/ms-drawer/models/drawer-action-type.enum'; @@ -101,8 +100,4 @@ export class AlgorithmComparisonComponent implements OnInit { this.recordsDataService.algorithmType = algorithmType; }); } - - trackByAlgorithmType(_: number, algorithmType: KeyValueObject): any { - return algorithmType.key; - } } diff --git a/frontend/src/app/modules/algorithm-comparison/components/run-drawer-actions/run-drawer-actions.component.html b/frontend/src/app/modules/algorithm-comparison/components/run-drawer-actions/run-drawer-actions.component.html index f364de79..ab99996e 100644 --- a/frontend/src/app/modules/algorithm-comparison/components/run-drawer-actions/run-drawer-actions.component.html +++ b/frontend/src/app/modules/algorithm-comparison/components/run-drawer-actions/run-drawer-actions.component.html @@ -1,19 +1,19 @@ +SPDX-License-Identifier: Apache-2.0 +-->
@@ -21,137 +21,130 @@ Select run record - - No algorithm was yet run. Please run a {{ algorithmTypeLabel }} algorithm. + @if (files.length === 0) { + No algorithm was yet run. Please run a {{ algorithmTypeLabel }} algorithm. + } @if (files.length > 0) { @for (file of files; track file) { + + {{ file.name }} - - - {{ file.name }} - - + } }
-
+ @if (isSummarizedRecordLoading$ | async) { +
- - - - - -
- Set run name - - - + } @else { @if (!!summarizedRecord) { + +
+ Set run name + + + +
+ + + + Statistics + + @if (summarizedRecord?.statistics | keyvalue; as statisticsItems) { @for (item of statisticsItems; track item; + let last = $last) { +
+
+
{{ item.key | parametersLabel }}:
+
+ @switch (item.key) { @case ('duration_seconds') { + {{ item.value | readableDuration }} + } @default { + {{ item.value }} + } } +
+
+ @if (!last) { +
+ +
+ }
- - - - - Statistics - - -
-
-
{{ item.key | parametersLabel }}:
-
- - {{ - item.value | readableDuration - }} - {{ item.value }} - -
-
-
- -
-
-
- -
No data available
-
-
- - - - Model training details - - -
-
-
{{ item.key | parametersLabel }}:
-
- - {{ item.value | adaptiveFileSize }} - {{ item.value | date: 'medium' }} - {{ - item.value | readableDuration - }} - {{ item.value }} - -
-
-
- -
-
-
- -
No data available
-
-
- - - - Parameters - - -
-
-
{{ item.key | parametersLabel }}:
-
{{ item.value }}
-
-
- -
-
-
- -
No data available
-
-
- - - - Last Accuracy Test Run - - - - - - -
No data available
-
-
-
- - + } } @else { +
No data available
+ } +
+ + + Model training details + + @if (summarizedRecord?.modelTrainingDetails | hasKeys) { @for (item of summarizedRecord?.modelTrainingDetails | + keyvalue; track item; let last = $last) { +
+
+
{{ item.key | parametersLabel }}:
+
+ @switch (item.key) { @case ('file_size_bytes') { + {{ item.value | adaptiveFileSize }} + } @case ('creation_date') { + {{ item.value | date: 'medium' }} + } @case ('training_duration_seconds') { + {{ item.value | readableDuration }} + } @default { + {{ item.value }} + } } +
+
+ @if (!last) { +
+ +
+ } +
+ } } @else { +
No data available
+ } +
+ + + Parameters + + @if (summarizedRecord?.parameters | keyvalue; as parametersItems) { @for (item of parametersItems; track item; + let last = $last) { +
+
+
{{ item.key | parametersLabel }}:
+
{{ item.value }}
+
+ @if (!last) { +
+ +
+ } +
+ } } @else { +
No data available
+ } +
+ + + Last Accuracy Test Run + + @if (summarizedRecord?.parameters | keyvalue; as accuracyItems) { + + + } @else { +
No data available
+ } +
+
+ } @else { + + + } } - - - - - diff --git a/frontend/src/app/modules/demo/components/checkboxes-demo/checkboxes-demo.component.html b/frontend/src/app/modules/demo/components/checkboxes-demo/checkboxes-demo.component.html index 1540e025..1a72ebb9 100644 --- a/frontend/src/app/modules/demo/components/checkboxes-demo/checkboxes-demo.component.html +++ b/frontend/src/app/modules/demo/components/checkboxes-demo/checkboxes-demo.component.html @@ -1,18 +1,18 @@ +SPDX-License-Identifier: Apache-2.0 -->

Checkboxes

@@ -37,11 +37,13 @@

Checkboxes

    -
  • + @for (subtask of task.subtasks; track subtask) { +
  • {{ subtask.name }}
  • + }
diff --git a/frontend/src/app/modules/model-compression/components/panel-algorithm/panel-algorithm.component.html b/frontend/src/app/modules/model-compression/components/panel-algorithm/panel-algorithm.component.html index f67a926f..e0d6a668 100644 --- a/frontend/src/app/modules/model-compression/components/panel-algorithm/panel-algorithm.component.html +++ b/frontend/src/app/modules/model-compression/components/panel-algorithm/panel-algorithm.component.html @@ -1,18 +1,18 @@ +SPDX-License-Identifier: Apache-2.0 -->

Algorithm

@@ -21,18 +21,18 @@ - + @for (algorithm of pruningAlgorithmsList; track algorithm.key) { + {{ algorithm.value }} + } - + @for (algorithm of quantAlgorithmsList; track algorithm.key) { + {{ algorithm.value }} + } diff --git a/frontend/src/app/modules/model-compression/components/panel-algorithm/panel-algorithm.component.ts b/frontend/src/app/modules/model-compression/components/panel-algorithm/panel-algorithm.component.ts index ca2ea397..b5a2af71 100644 --- a/frontend/src/app/modules/model-compression/components/panel-algorithm/panel-algorithm.component.ts +++ b/frontend/src/app/modules/model-compression/components/panel-algorithm/panel-algorithm.component.ts @@ -119,10 +119,6 @@ export class PanelAlgorithmComponent { }); } - trackByAlgorithmKey(_: number, algorithm: { key: any; value: any }): any { - return algorithm.key; - } - ngOnDestroy() { this.parentFormGroup.removeControl(this.controlKey); } diff --git a/frontend/src/app/modules/model-training/components/panel-algorithm-type-for-training/panel-algorithm-type-for-training.component.html b/frontend/src/app/modules/model-training/components/panel-algorithm-type-for-training/panel-algorithm-type-for-training.component.html index ad808eb2..5bfe6acc 100644 --- a/frontend/src/app/modules/model-training/components/panel-algorithm-type-for-training/panel-algorithm-type-for-training.component.html +++ b/frontend/src/app/modules/model-training/components/panel-algorithm-type-for-training/panel-algorithm-type-for-training.component.html @@ -1,18 +1,18 @@ +SPDX-License-Identifier: Apache-2.0 -->

Algorithm Type

@@ -21,11 +21,11 @@
- + @for (algorithmType of algorithmTypesOptions; track algorithmType.key) { + {{ algorithmType.value }} + }
diff --git a/frontend/src/app/modules/model-training/components/panel-algorithm-type-for-training/panel-algorithm-type-for-training.component.ts b/frontend/src/app/modules/model-training/components/panel-algorithm-type-for-training/panel-algorithm-type-for-training.component.ts index 7a634a55..c8df34c4 100644 --- a/frontend/src/app/modules/model-training/components/panel-algorithm-type-for-training/panel-algorithm-type-for-training.component.ts +++ b/frontend/src/app/modules/model-training/components/panel-algorithm-type-for-training/panel-algorithm-type-for-training.component.ts @@ -18,7 +18,6 @@ import { Component, Input, OnInit, inject } from '@angular/core'; import { ControlContainer, FormControl, FormGroup, Validators } from '@angular/forms'; import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'; import { filter, map, skip, take } from 'rxjs'; -import { KeyValueObject } from '../../../../services/client/models/key-value/key-value.interface-dto'; import { ScriptDetails } from '../../../../services/client/models/script/script-details.interface-dto'; import { ScriptActions } from '../../../../state/core/script'; import { ScriptFacadeService } from '../../../core/services'; @@ -120,8 +119,4 @@ export class PanelAlgorithmTypeForTrainingComponent implements OnInit { isScriptActive(state) ? this.algorithmTypeFormGroup.disable() : this.algorithmTypeFormGroup.enable(); }); } - - trackByAlgorithmType(_: number, algorithmType: KeyValueObject): any { - return algorithmType.key; - } } diff --git a/frontend/src/app/modules/model-training/components/panel-model-metadata/panel-model-metadata.component.html b/frontend/src/app/modules/model-training/components/panel-model-metadata/panel-model-metadata.component.html index cc3b17c5..adf97d3b 100644 --- a/frontend/src/app/modules/model-training/components/panel-model-metadata/panel-model-metadata.component.html +++ b/frontend/src/app/modules/model-training/components/panel-model-metadata/panel-model-metadata.component.html @@ -1,46 +1,53 @@ +SPDX-License-Identifier: Apache-2.0 -->