def fit(self, X, y):
self.X = X<EOL>self.y = y<EOL>if hasattr(self.gamma, "<STR_LIT>"):<EOL><INDENT>self.gamma = self._optimize_gamma(self.gamma)<EOL><DEDENT>return self<EOL>
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.