class_docstr: Base solver for classification problems
docstr: Set the ensemble module used in current solver.
  
  Parameters
  ----------
  ensemble_module: autogl.module.ensemble.BaseEnsembler or str or None
      The (name of) ensemble module used to ensemble the multi-models found.
      Disable ensemble by setting it to ``None``.
  
  Returns
  -------
  self: autogl.solver.BaseSolver
      A reference of current solver.
docstr_tok: ["Set","the","ensemble","module","used","in","current","solver",".","Parameters","--","--","--","--","--","ensemble_module",":","autogl.module.ensemble.BaseEnsembler","or","str","or","None","The","(","name","of",")","ensemble","module","used","to","ensemble","the","multi-models","found",".","Disable","ensemble","by","setting","it","to","``","None","``",".","Returns","--","--","--","-","self",":","autogl.solver.BaseSolver","A","reference","of","current","solver","."]
code: def set_ensemble_module(
      self, ensemble_module, *args, **kwargs
  ) -> "BaseClassifier":
      """
      Set the ensemble module used in current solver.
  
      Parameters
      ----------
      ensemble_module: autogl.module.ensemble.BaseEnsembler or str or None
          The (name of) ensemble module used to ensemble the multi-models found.
          Disable ensemble by setting it to ``None``.
  
      Returns
      -------
      self: autogl.solver.BaseSolver
          A reference of current solver.
      """
      # load ensemble module
      if ensemble_module is None:
          self.ensemble_module = None
      elif isinstance(ensemble_module, BaseEnsembler):
          self.ensemble_module = ensemble_module
      elif isinstance(ensemble_module, str):
          if ensemble_module in ENSEMBLE_DICT:
              self.ensemble_module = ENSEMBLE_DICT[ensemble_module](
                  *args, **kwargs
              )
          else:
              raise KeyError(
                  "cannot find ensemble module %s." % (ensemble_module)
              )
      else:
          ValueError(
              "need ensemble module to be str or a BaseEnsembler instance, get",
              type(ensemble_module),
              "instead.",
          )
  
file_path: AutoGL/autogl/solver/classifier/base.py
imports: from typing import Any
  from ..base import BaseSolver
  from ...module.ensemble import ENSEMBLE_DICT
  from ...module import BaseEnsembler
label_desc: Use image node_id 2 for calling the BaseClassifier obj's underlying member method code with example usage: obj.set_ensemble_module(ensemble_module) without return types