def train(self, print_every=5000, block=True):
        """ train new data samples according to the model setting

        Parameters
        ----------
        print_every: int
            print training log info every print_every batches

        """
        self.conn.send(['train', print_every])

        if block:
            return self.fetch_train()
 train new data samples according to the model setting

        Parameters
        ----------
        print_every: int
            print training log info every print_every batches

        
python/magent/model.py