code: def to_dict(self):
          
          param = {
              "n_folds": self._n_folds,
              "n_rows": self._n_rows,
              "use_stored_folds": self._use_stored_folds
          }
  
          if self._concise_global_model is None:
              trained_global_model = None
          else:
              trained_global_model = self._concise_global_model.to_dict()
  
          obj_dict = {"param": param,
                      "folds": self._kf,
                      "init_model": self._concise_model.to_dict(),
                      "trained_global_model": trained_global_model,
                      "output": {fold: model.to_dict() for fold, model in self.get_CV_models().items()}
                      }
          return obj_dict
docs: Returns:
              dict: ConciseCV represented as a dictionary.