'Transform X.
Parameters
X : array-like, shape (n_samples, n_features)
Returns
X_new : array-like, shape (n_samples, n_components)'

def transform(self, X):

    check_is_fitted(self, 'X_fit_')
    K = self._centerer.transform(self._get_kernel(X, self.X_fit_))
    return np.dot(K, (self.alphas_ / np.sqrt(self.lambdas_)))
