class_docstr: Data generator with an optional increasing batch size.
class_docstr_tok: ["Data","generator","with","an","optional","increasing","batch","size","."]
docstr: Linearly increase batch size with every epoch.
  
  The idea comes from https://arxiv.org/abs/1711.00489.
  
  Returns:
      The batch size to use in this epoch.
docstr_tok: ["Linearly","increase","batch","size","with","every","epoch",".","The","idea","comes","from","https",":","\/\/arxiv.org\/abs\/1711.00489",".","Returns",":","The","batch","size","to","use","in","this","epoch","."]
code: def _linearly_increasing_batch_size(self) -> int:
      """Linearly increase batch size with every epoch.
  
      The idea comes from https://arxiv.org/abs/1711.00489.
  
      Returns:
          The batch size to use in this epoch.
      """
      if not isinstance(self.batch_size, list):
          return int(self.batch_size)
  
      if self._epochs > 1:
          return int(
              self.batch_size[0]
              + self._current_epoch
              * (self.batch_size[1] - self.batch_size[0])
              / (self._epochs - 1)
          )
      else:
          return int(self.batch_size[0])
  
imports: import math
  from typing import List, Union, Text, Optional, Any, Tuple, Dict, cast
  import logging
  import scipy.sparse
  import numpy
  from tensorflow.keras.utils import Sequence
  from rasa.utils.tensorflow.constants import SEQUENCE, BALANCED
  from rasa.utils.tensorflow.model_data import RasaModelData, Data, FeatureArray
label_desc: Use image node_id 5 for calling the RasaBatchDataGenerator obj's underlying member method code with example usage: obj._linearly_increasing_batch_size() and returns: int, int, int