def train_on_batch(self, texts: List[List[np.ndarray]], labels: list) -> Union[float, List[float]]:
features = self.check_input(texts)<EOL>metrics_values = self.model.train_on_batch(features, np.squeeze(np.array(labels)))<EOL>return metrics_values<EOL>
Train the model on the given batch

Args:
    texts: list of tokenized embedded text samples
    labels: list of labels

Returns:
    metrics values on the given batch