make it easier to do multiple fold training
This commit is contained in:
parent
ec83d01dca
commit
c94f4a42b9
|
@ -387,7 +387,8 @@ class Trainer(object):
|
||||||
fold=i,
|
fold=i,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
raise ValueError("Sure you want to do multiple fold training")
|
a = input("Are you sure you want to do multiple fold training? (y/n)")
|
||||||
|
if a.lower() == "y":
|
||||||
for mb_generator, steps_per_epoch, val_data, test_data in self.mb_loader(full_df=df):
|
for mb_generator, steps_per_epoch, val_data, test_data in self.mb_loader(full_df=df):
|
||||||
self._train_single_fold(
|
self._train_single_fold(
|
||||||
mb_generator=mb_generator,
|
mb_generator=mb_generator,
|
||||||
|
|
Loading…
Reference in New Issue