docstr: Sets maximum number of epochs to train, by default 30
  
  Parameters
  ----------
  epochs : int
      Maximum number of epochs to train
code: def setMaxEpochs(self, epochs):
      """Sets maximum number of epochs to train, by default 30
  
      Parameters
      ----------
      epochs : int
          Maximum number of epochs to train
      """
      return self._set(maxEpochs=epochs)
  
file_path: spark-nlp/python/sparknlp/annotator/param/classifier_encoder.py
imports: from sparknlp.common import *
  from sparknlp.internal import ParamsGettersSetters
label_desc: Use image node_id 1 for calling the ClassifierEncoder obj's underlying member method code with example usage: obj.setMaxEpochs(epochs) and returns: self