deeppavlov/models/morpho_tagger/network.py
def train_on_batch(self, data: List[Iterable], labels: Iterable[list]) -> None:
        """Trains model on a single batch

        Args:
            data: a batch of word sequences
            labels: a batch of correct tag sequences
        Returns:
            the trained model
        """
        X, Y = self._transform_batch(data, labels)
        self.model_.train_on_batch(X, Y)
def train_on_batch(self, data: List[Iterable], labels: Iterable[list]) -> None:
        X, Y = self._transform_batch(data, labels)
        self.model_.train_on_batch(X, Y)
def train_on_batch ( self , data : List [ Iterable ] , labels : Iterable [ list ] ) -> None : X , Y = self . _transform_batch ( data , labels ) self . model_ . train_on_batch ( X , Y )
Trains model on a single batch

        Args:
            data: a batch of word sequences
            labels: a batch of correct tag sequences
        Returns:
            the trained model
Trains model on a single batch