diff options
Diffstat (limited to 'backend/api/api/Services/ModelService.cs')
-rw-r--r-- | backend/api/api/Services/ModelService.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/api/api/Services/ModelService.cs b/backend/api/api/Services/ModelService.cs index c2b4e692..daba2855 100644 --- a/backend/api/api/Services/ModelService.cs +++ b/backend/api/api/Services/ModelService.cs @@ -64,6 +64,10 @@ namespace api.Services { _model.ReplaceOne(model => model.username == username && model.name == name, model); } + public void Update(string id, Model model) + { + _model.ReplaceOne(model => model._id == id, model); + } // public bool CheckHyperparameters(int inputNeurons, int hiddenLayerNeurons, int hiddenLayers, int outputNeurons) { |