aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_elements/hidden-layer
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/app/_elements/hidden-layer')
-rw-r--r--frontend/src/app/_elements/hidden-layer/hidden-layer.component.css5
-rw-r--r--frontend/src/app/_elements/hidden-layer/hidden-layer.component.html40
-rw-r--r--frontend/src/app/_elements/hidden-layer/hidden-layer.component.spec.ts25
-rw-r--r--frontend/src/app/_elements/hidden-layer/hidden-layer.component.ts16
4 files changed, 86 insertions, 0 deletions
diff --git a/frontend/src/app/_elements/hidden-layer/hidden-layer.component.css b/frontend/src/app/_elements/hidden-layer/hidden-layer.component.css
new file mode 100644
index 00000000..c8db6056
--- /dev/null
+++ b/frontend/src/app/_elements/hidden-layer/hidden-layer.component.css
@@ -0,0 +1,5 @@
+.container{
+ max-width: 15rem;
+ border: 1px solid white;
+ border-radius: 5px;
+}
diff --git a/frontend/src/app/_elements/hidden-layer/hidden-layer.component.html b/frontend/src/app/_elements/hidden-layer/hidden-layer.component.html
new file mode 100644
index 00000000..65e0f626
--- /dev/null
+++ b/frontend/src/app/_elements/hidden-layer/hidden-layer.component.html
@@ -0,0 +1,40 @@
+<div class="container">
+ <mat-form-field appearance="fill">
+ <mat-label>Aktivaciona funkcija</mat-label>
+ <mat-select matNativeControl required [formControl]="selectFormControl">
+ <mat-option label="--select something --"></mat-option>
+ <mat-option value="saab">Relu</mat-option>
+ <mat-option value="mercedes">Sigmoid</mat-option>
+ <mat-option value="audi">Softmax</mat-option>
+ </mat-select>
+ <mat-error *ngIf="selectFormControl.hasError('required')">
+ Obavezno polje
+ </mat-error>
+ </mat-form-field>
+<br>
+ Broj Ĩvorova: <input type="number" min="1" class="form-control" name="hiddenLayersNeurons">
+ <br>
+ <mat-form-field appearance="fill">
+ <mat-label>Regularizacija</mat-label>
+ <mat-select matNativeControl required [formControl]="selectFormControl">
+ <mat-option label="--select something --"></mat-option>
+ <mat-option value="l1">L1</mat-option>
+ <mat-option value="l2">L2</mat-option>
+ </mat-select>
+ <mat-error *ngIf="selectFormControl.hasError('required')">
+ Obavezno polje
+ </mat-error>
+ </mat-form-field>
+ <br>
+ <mat-form-field appearance="fill">
+ <mat-label>Stopa regularizacije</mat-label>
+ <mat-select matNativeControl required [formControl]="selectFormControl">
+ <mat-option value="saab">0.001</mat-option>
+ <mat-option value="mercedes">0.01</mat-option>
+ <mat-option value="audi">0.1</mat-option>
+ </mat-select>
+ <mat-error *ngIf="selectFormControl.hasError('required')">
+ Obavezno polje
+ </mat-error>
+ </mat-form-field>
+</div>
diff --git a/frontend/src/app/_elements/hidden-layer/hidden-layer.component.spec.ts b/frontend/src/app/_elements/hidden-layer/hidden-layer.component.spec.ts
new file mode 100644
index 00000000..103e4539
--- /dev/null
+++ b/frontend/src/app/_elements/hidden-layer/hidden-layer.component.spec.ts
@@ -0,0 +1,25 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { HiddenLayerComponent } from './hidden-layer.component';
+
+describe('HiddenLayerComponent', () => {
+ let component: HiddenLayerComponent;
+ let fixture: ComponentFixture<HiddenLayerComponent>;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ declarations: [ HiddenLayerComponent ]
+ })
+ .compileComponents();
+ });
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(HiddenLayerComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/frontend/src/app/_elements/hidden-layer/hidden-layer.component.ts b/frontend/src/app/_elements/hidden-layer/hidden-layer.component.ts
new file mode 100644
index 00000000..fa9a1114
--- /dev/null
+++ b/frontend/src/app/_elements/hidden-layer/hidden-layer.component.ts
@@ -0,0 +1,16 @@
+import { Component, OnInit } from '@angular/core';
+import { FormControl, Validators } from '@angular/forms';
+
+@Component({
+ selector: 'app-hidden-layer',
+ templateUrl: './hidden-layer.component.html',
+ styleUrls: ['./hidden-layer.component.css']
+})
+export class HiddenLayerComponent implements OnInit {
+
+ constructor() { }
+
+ ngOnInit(): void {
+ }
+ selectFormControl = new FormControl('', Validators.required);
+}