On 05/21/2013 09:40 PM, Paulo Nuin wrote:
> Hi Lars
>
> Thanks a lot for the help so far.
>
> It seems that your method solves part of my troubles. In my case X contains 
> all lines that are not NegCtrl and y the NegCtrl. Currently I am just trying 
> to load the sets into bumpy arrays and run something from the initial 
> tutorial on scikit-learn just to see if it works:
>
> clf =svm.SVC(gamma=0.001, C=100.)
> clf.fit(data[:-1], target[:-1])
>
> When I run my scripts I get the data and target shapes as:
>
> (179, 205)
> (53, 205)
It seems your matrix is transposed.
It should be (n_samples, n_features).
What are the 53 rows for the target?
I guess these are (mistakenly) flattened in the code which produces your 
error.

Hth,
Andy

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to