Commit 5c57f269 authored by Geazy Menezes's avatar Geazy Menezes

fix wrong folder status printing

parent 02eae3b2
......@@ -427,13 +427,13 @@ class CNNKeras(Classifier):
VALIDATION_DATA_DIR = root + '.cv_folders/' + str_folder + "/test"
CLASS_NAMES = os.listdir(TRAIN_DATA_DIR)
CLASS_NAMES.sort()
print('Folder',str_folder+'/'+str(self.k_value.value))
print('_'*25)
ds = root + '.cv_folders/' + str_folder
self.holdout_train(dataset=ds, training_data=None, force=True)
acc, val_acc, loss, val_loss = METRICS_SCORES
val_accs.append(val_acc)
K.clear_session()
print('Folder',str_folder+'/'+str(self.k_value.value))
for i in range(len(val_accs)):
val_accs[i] = 100.*val_accs[i]
cross_val = sum(val_accs) / float(self.k_value.value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment