class_docstr: Shared set-up checks and methods across numerical discretisers.
  
  Important: inherits fit() functionality and tags from BaseNumericalTransformer.
class_docstr_tok: ["Shared","set-up","checks","and","methods","across","numerical","discretisers",".","Important",":","inherits","fit","(",")","functionality","and","tags","from","BaseNumericalTransformer","."]
code: def __init__(
      self,
      return_object: bool = False,
      return_boundaries: bool = False,
  ) -> None:
      if not isinstance(return_object, bool):
          raise ValueError(
              "return_object must be True or False. "
              f"Got {return_object} instead."
          )
  
      if not isinstance(return_boundaries, bool):
          raise ValueError(
              "return_boundaries must be True or False. "
              f"Got {return_boundaries} instead."
          )
  
      self.return_object = return_object
      self.return_boundaries = return_boundaries
  
imports: import pandas
  from feature_engine._base_transformers.base_numerical import BaseNumericalTransformer
label_desc: Use image node_id 1 to create a new BaseDiscretiser object from inherited base classes: BaseNumericalTransformer with example: obj = BaseDiscretiser(return_object, return_boundaries)