          self._coverage_ratio = coverage_ratio
          self._scaling = scaling
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def show_sample(self):
          """ Compile a preview image.
  
          Returns
          -------
          :class:`numpy.ndarry`
 
</s>
    def toggle_mask_display(self):
        if not (self._model.config["learn_mask"] or self._model.config["penalized_mask_loss"]):
            return
        self._display_mask = not self._display_mask

          self._coverage_ratio = coverage_ratio
          self._scaling = scaling
          logger.debug("Initialized %s", self.__class__.__name__)
  
    def toggle_mask_display(self):
        if not (self._model.config["learn_mask"] or self._model.config["penalized_mask_loss"]):
            return
        self._display_mask = not self._display_mask

      def show_sample(self):
          """ Compile a preview image.
  
          Returns
          -------
          :class:`numpy.ndarry`
keep keep keep add keep keep keep keep keep keep
 - added push t to disable mask display at preview window

trsprmvd

- added extra checks for mask presence in the set
plugins/train/trainer/_base.py