def METHOD_NAME(self, deep=True):
    """Get parameters for this estimator.
    Parameters
    ----------
    deep : boolean, optional
        If True, will return the parameters for this estimator and
        contained subobjects that are estimators.
    Returns
    -------
    params : mapping of string to any
        Parameter names mapped to their values.'
    adapted from
    https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/base.py
    Author: Gael Varoquaux <gael.varoquaux@normalesup.org>
    License: BSD 3 clause
    """
    out = dict()
    for key in self._get_param_names():
        value = getattr(self, key, None)
        if deep and hasattr(value, "get_params"):
            deep_items = value.METHOD_NAME().items()
            out.update((key + "__" + k, val) for k, val in deep_items)
        out[key] = value
    return out