From 9d5603c5e9b5b2a0d71cd72401fb7e0d91dc74c7 Mon Sep 17 00:00:00 2001 From: Danijel Anđelković Date: Wed, 27 Apr 2022 23:17:18 +0200 Subject: Promenio layout za neke kolone tako da su responzivnije. --- .../_elements/form-model/form-model.component.css | 34 ---------------------- 1 file changed, 34 deletions(-) (limited to 'frontend/src/app/_elements/form-model/form-model.component.css') diff --git a/frontend/src/app/_elements/form-model/form-model.component.css b/frontend/src/app/_elements/form-model/form-model.component.css index c0ae9365..b69b2dbb 100644 --- a/frontend/src/app/_elements/form-model/form-model.component.css +++ b/frontend/src/app/_elements/form-model/form-model.component.css @@ -44,44 +44,10 @@ col-1 { padding: 0; } -.ns-row { - width: 98%; - display: flex; - flex-direction: row; - flex-wrap: wrap; - margin: 0; - padding: 0; -} - -.ns-col { - flex-grow: 1; - padding: 2px; - margin-bottom: 0; - padding-bottom: 0; -} - ::ng-deep .mat-form-field-wrapper { margin-bottom: -1.85em; } -.break-1, -.break-2 { - height: 1px; - width: 100%; -} - -@media screen and (min-width: 1200px) { - .break-1 { - display: none; - } -} - -@media screen and (min-width: 2175px) { - .break-2 { - display: none; - } -} - #layers-control { display: flex; flex-direction: row; -- cgit v1.2.3 From 96eae581ca377a940f39d1908a4b5661ccb7c223 Mon Sep 17 00:00:00 2001 From: TAMARA JERINIC Date: Wed, 27 Apr 2022 23:57:53 +0200 Subject: Dodata opcija da se istovremeno podešavaju parametri svih skrivenih slojeva. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_elements/form-model/form-model.component.css | 13 +++--- .../_elements/form-model/form-model.component.html | 54 +++++++++++++++++++++- .../_elements/form-model/form-model.component.ts | 39 +++++++++++++++- 3 files changed, 96 insertions(+), 10 deletions(-) (limited to 'frontend/src/app/_elements/form-model/form-model.component.css') diff --git a/frontend/src/app/_elements/form-model/form-model.component.css b/frontend/src/app/_elements/form-model/form-model.component.css index b69b2dbb..5776085f 100644 --- a/frontend/src/app/_elements/form-model/form-model.component.css +++ b/frontend/src/app/_elements/form-model/form-model.component.css @@ -21,7 +21,7 @@ mat-form-field { hr { color: var(--offwhite) !important; margin-bottom: 30px; - ; + } .neuron { @@ -33,12 +33,10 @@ hr { background-color: var(--ns-bg-dark-100) !important; min-width: none; max-width: 12.5rem; -} -col-1 { - text-align: center; } + .row { margin: 0; padding: 0; @@ -70,11 +68,14 @@ col-1 { border: 1px solid var(--ns-primary); border-radius: 4px; margin: 5px; - padding: 3px; + padding: 0px; width: 12rem; - height: 13rem; + height: 13.5rem; } .layer>mat-form-field { margin-left: 0; +} +.m-2{ + max-height: 20 rem; } \ No newline at end of file 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 4c5505f0..2a8d79a8 100644 --- a/frontend/src/app/_elements/form-model/form-model.component.html +++ b/frontend/src/app/_elements/form-model/form-model.component.html @@ -92,7 +92,10 @@
-
+
+
+ +
Broj Skrivenih Slojeva
+ +
+
+
+ + Aktivaciona funkcija svih slojeva + + + + {{ optionName }} + + +
+ +
+ + Broj Neurona svih slojeva + + +
+
+
+ + Regularizacija svih slojeva + + + {{ optionName }} + + + +
+ +
+ + Stopa regularizacije svih slojeva + + + {{ optionName }} + + + +
+ +
+ + +
@@ -124,7 +174,7 @@ -
{{newModel.layers[i].neurons}}
+
{{newModel.layers[i].neurons}}
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 c29fd0bb..062c380e 100644 --- a/frontend/src/app/_elements/form-model/form-model.component.ts +++ b/frontend/src/app/_elements/form-model/form-model.component.ts @@ -4,8 +4,7 @@ import Shared from 'src/app/Shared'; import Experiment from 'src/app/_data/Experiment'; import Model, { Layer, ActivationFunction, LossFunction, LearningRate, LossFunctionBinaryClassification, LossFunctionMultiClassification, LossFunctionRegression, Metrics, MetricsBinaryClassification, MetricsMultiClassification, MetricsRegression, NullValueOptions, Optimizer, ProblemType, Regularisation, RegularisationRate, BatchSize } from 'src/app/_data/Model'; import { GraphComponent } from '../graph/graph.component'; -import { FormGroupDirective, NgForm } from '@angular/forms'; -import { ErrorStateMatcher } from '@angular/material/core'; + @Component({ selector: 'app-form-model', @@ -104,4 +103,40 @@ export class FormModelComponent implements AfterViewInit { this.updateGraph(); } } + selectedActivation: ActivationFunction = ActivationFunction.Sigmoid; + selectedRegularisationRate: RegularisationRate = RegularisationRate.RR1; + selectedRegularisation: Regularisation = Regularisation.L1; + selectedNumberOfNeurons:number=1; + + changeAllActivation(){ + for(let i=0;i