'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.'

def get_params(self, deep=True):

    out = dict()
    for key in self._get_param_names():
        warnings.simplefilter('always', DeprecationWarning)
        try:
            with warnings.catch_warnings(record=True) as w:
                value = getattr(self, key, None)
            if (len(w) and (w[0].category == DeprecationWarning)):
                continue
        finally:
            warnings.filters.pop(0)
        if (deep and hasattr(value, 'get_params')):
            deep_items = value.get_params().items()
            out.update(((((key + '__') + k), val) for (k, val) in deep_items))
        out[key] = value
    return out
