title: Sklearn - define get_params() automatically
body: <p>I'm trying to define a class that qualifies for an estimator in Sklearn, e.g.</p>
  
  <pre><code>class MyEstimator():
      def __init__(self,verbose=False):
          self.verbose = verbose
  
      def get_params(self, deep=False):
          return {
              'verbose': self.verbose,
          }
  
      def set_params(self, **parameters):
          for parameter, value in parameters.items():
              setattr(self, parameter, value)
          return self
  
      # Also def fit() and other stuff ...
  </code></pre>
  
  <h1>Question</h1>
  
  <p><code>set_params()</code> could be defined without explicitly listing all parameter names. Is there a way to define <code>get_params()</code> in a similar way?</p>
  
  <p>What I need from Sklearn is <code>GridsearchCV</code>, and from what I have tried, it seems <code>get_params</code> determines what parameters can be injected during cross validation.</p>