continuously save training data