aboutsummaryrefslogtreecommitdiff
path: root/backend/api
diff options
context:
space:
mode:
authorSonja Galovic <galovicsonja@gmail.com>2022-05-04 21:09:00 +0200
committerSonja Galovic <galovicsonja@gmail.com>2022-05-04 21:09:00 +0200
commitda27997809160bfea0e134f7a2f44d63174447f5 (patch)
treed8d752e67bc555150eb04cb812fa95263737ced6 /backend/api
parentae29f2f27d680d4152d3f19eb1db284aa951d0cd (diff)
parent5f45f5daf61359b039a6154c324a6e6452f0b8a9 (diff)
Merge branch 'redesign' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into redesign
Diffstat (limited to 'backend/api')
-rw-r--r--backend/api/api/Models/Dataset.cs1
-rw-r--r--backend/api/api/Models/Model.cs3
-rw-r--r--backend/api/api/Services/FillAnEmptyDb.cs6
3 files changed, 6 insertions, 4 deletions
diff --git a/backend/api/api/Models/Dataset.cs b/backend/api/api/Models/Dataset.cs
index 7acd4382..beb66de9 100644
--- a/backend/api/api/Models/Dataset.cs
+++ b/backend/api/api/Models/Dataset.cs
@@ -28,6 +28,7 @@ namespace api.Models
public int nullRows { get; set; }
public bool isPreProcess { get; set; }
+ public float[][] cMatrix { get; set; }
}
}
diff --git a/backend/api/api/Models/Model.cs b/backend/api/api/Models/Model.cs
index f95be715..a2740ca9 100644
--- a/backend/api/api/Models/Model.cs
+++ b/backend/api/api/Models/Model.cs
@@ -27,7 +27,8 @@ namespace api.Models
public string lossFunction { get; set; }
//public int inputNeurons { get; set; }
public int hiddenLayers { get; set; }
- public int batchSize { get; set; }
+ public string batchSize { get; set; }
+ public string learningRate { get; set; }
// na izlazu je moguce da bude vise neurona (klasifikacioni problem sa vise od 2 klase)
public int outputNeurons { get; set; }
public Layer[] layers { get; set; }
diff --git a/backend/api/api/Services/FillAnEmptyDb.cs b/backend/api/api/Services/FillAnEmptyDb.cs
index 6148efb6..d8c53bab 100644
--- a/backend/api/api/Services/FillAnEmptyDb.cs
+++ b/backend/api/api/Services/FillAnEmptyDb.cs
@@ -99,7 +99,7 @@ namespace api.Services
model.optimizer = "Adam";
model.lossFunction = "mean_squared_error";
model.hiddenLayers = 5;
- model.batchSize = 8;
+ model.batchSize = "8";
model.outputNeurons = 0;
model.outputLayerActivationFunction = "sigmoid";
model.metrics = new string[] { };
@@ -212,7 +212,7 @@ namespace api.Services
model.optimizer = "Adam";
model.lossFunction = "mean_absolute_error";
model.hiddenLayers = 4;
- model.batchSize = 5;
+ model.batchSize = "8";
model.outputNeurons = 0;
model.outputLayerActivationFunction = "relu";
model.metrics = new string[] { };
@@ -320,7 +320,7 @@ namespace api.Services
model.optimizer = "Adam";
model.lossFunction = "sparse_categorical_crossentropy";
model.hiddenLayers = 3;
- model.batchSize = 4;
+ model.batchSize = "64";
model.outputNeurons = 0;
model.outputLayerActivationFunction = "softmax";
model.metrics = new string[] { };