Hi, all,
I came across an error as below,
File "/usr/lib/python2.7/dist-packages/sklearn/feature_selection/base.py",
line 77, in transform
raise ValueError("X has a different shape than during fitting.")
ValueError: X has a different shape than during fitting.
and the error from my function call "X = selector.fit_transform(X,y)", I
believe that no shape problem of X.
and I also check out the source code in base.py , find the source of the
error:
mask = self.get_support()
if len(mask) != X.shape[1]:
raise ValueError("X has a different shape than during fitting.")
But I still can't figure it out. Please help me.
Thanks,
Yao.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general