def set_traindata(self, training_rdd, batch_size):
callBigDlFunc(self.bigdl_type, "<STR_LIT>", self.value,<EOL>training_rdd, batch_size)<EOL>
Set new training dataset, for optimizer reuse

:param training_rdd: the training dataset
:param batch_size: training batch size
:return: