def get_params(self) -> dict[str, Any]:
        """
        Get all parameters and their values of this estimator.

        :return: A dictionary of string parameter names to their value.
        """
        params = {}
        for key in self.estimator_params:
            params[key] = getattr(self, key)
        return params

        Get all parameters and their values of this estimator.

        :return: A dictionary of string parameter names to their value.
        
art/estimators/estimator.py