change end of curriculum learning

parent c6c64328
......@@ -1423,10 +1423,11 @@ class TranslationDataset(CachedDataset2):
def make_cur_slice(self, curriculum_learning):
competence = self.get_model_competence(curriculum_learning)
if competence >= 1:
quit(2222)
# TODO check that if, beforehand stopped one epoch too early
if curriculum_learning['total_number_of_iterations'] < self.epoch:
print("Competence is " + str(competence) + "high. From now on usual Training. We are in Epoch "
+ str(self.epoch) + ".")
quit(2222)
# disable use_curriculum_learning
self._seq_order = curriculum_learning.old_seq_order
self._num_seqs = len(self._seq_order)
......
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