multiple fixes

This commit is contained in:
2024-05-11 01:11:07 +01:00
parent 0ac6ac8dce
commit 0c0d16c846
34 changed files with 340 additions and 454 deletions

View File

@@ -136,17 +136,16 @@ func processZipFile(c *Context, model *BaseModel) {
return
}
if paths[0] != "training" {
if paths[0] == "training" {
training = InsertIfNotPresent(training, paths[1])
} else if paths[0] != "testing" {
} else if paths[0] == "testing" {
testing = InsertIfNotPresent(testing, paths[1])
}
}
if !reflect.DeepEqual(testing, training) {
c.Logger.Info("Diff", "testing", testing, "training", training)
failed("Testing and Training datesets are diferent")
return
c.Logger.Warn("Diff", "testing", testing, "training", training)
c.Logger.Warn("Testing and traing datasets differ")
}
base_path := path.Join("savedData", model.Id, "data")