code: def fit(self, X, y):
          
          self.X = X
          self.y = y
  
          if hasattr(self.gamma, "__iter__"):
              self.gamma = self._optimize_gamma(self.gamma)
  
          return self
docs: Fit the model
  
          Parameters
          ----------
          X : array-like of shape = [n_samples, n_features]
              The training input samples.
  
          y : array-like, shape = [n_samples]
              The target values
  
          Returns
          -------
          self : object
              Returns self.