lorenzoriano/PyKCCA — pull request #1 by minhlongdo (2014-11-18 23:34:51+00:00)
Title: Fixed UnboundLocalError of n_samples. Fixed typo.

The following error occurred when the program was running.
Traceback (most recent call last):
File "kcca.py", line 467, in
scaler2=lambda x:x).fit(x1,x2)
File "kcca.py", line 246, in fit
(y1, y2, beta) = self.kcca(self.K1, self.K2)
File "kcca.py", line 162, in kcca
n_components = n_samples
UnboundLocalError: local variable 'n_samples' referenced before assignment