Hello,
I hope use CCA(Canonical Correlation Analysis) to fit problem set with
size of (35000, 117) to its label (35000, 1), 35000 is samples and 117 is
feature dimension per sample.
Now I have the following two problems.
1) How to choose appropriate CCA n_compoents parameter to fix my samples?
2) When classifying with n_components = 1 or n_components = 2, the fit
procedure quits with the following messages,
/usr/local/lib/python2.7/dist-packages/sklearn/cross_decomposition/pls_.py:277:
UserWarning: Y residual constant at iteration 1
warnings.warn('Y residual constant at iteration %s' % k)
And here I paste some of my codes to show CCA initialization parameters.
*cca = CCA(max_iter=500000, tol=1e-05)*
*cca.fit(features, labels) # features.shape = [35000, 117], labels =
[35000, 1]*
Could you give me some hints on this?
Thanks,
Yan
------------------------------------------------------------------------------
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general