km = self.kernel(target_graph)
if self.normalize:
dX, dT = self.kernel(y=target_graph, diagonal_only=True)
km /= np.sqrt(np.dot(dT, dX.T))
return km
def fit_transform(self, X):
Fit and transform, on the same dataset.
After Change
return np.dot(self._kernel.transform(X),
self.nystroem_normalization_.T)
else:
return self._kernel.transform(X)
def fit_transform(self, X):
Fit and transform, on the same dataset.