docstr: Get model parameters that are sufficient to recapitulate it.
docstr_tok: ["Get","model","parameters","that","are","sufficient","to","recapitulate","it","."]
code: def _get_model_params(self):
      """Get model parameters that are sufficient to recapitulate it."""
      params = {}
      for attr in dir(self):
          # Do not save properties
          if hasattr(type(self), attr) and isinstance(
              getattr(type(self), attr), property
          ):
              continue
          if (
              not attr.startswith("__")
              and attr.endswith("_")
              and not callable(getattr(self, attr))
          ):
              params[attr] = getattr(self, attr)
      return params
  
imports: from abc import ABCMeta, abstractmethod
  from sklearn.exceptions import NotFittedError
  from sklearn.base import BaseEstimator
  import json
  import pickle
  import numpy
  from warnings import warn
label_desc: Use image node_id 2 for calling the BaseModelPackage obj's underlying member method code with example usage: obj._get_model_params() and returns: params