Awesome -- that worked! Thanks!

On Mar 12, 2012, at 1:00 PM, Yaroslav Halchenko wrote:

> ah -- I should have thought about that...:
> 
> In [27]: print ds.targets
> ['-0.060484' '0.125' '-0.096774' '0' '0.065524' '0.13206' '0' '-0.0098118' 
> ... ]
> 
> i.e. they are strings, whenever you want them to be numeric
> 
> so just do smth like
> 
> ds.targets = ds.targets.astype(float)
> 
> On Mon, 12 Mar 2012, David V. Smith wrote:
> 
>> Thanks for the help. The code you sent works on the 'chirp_linear' dataset, 
>> but it fails with the FailedToPredictError on my data. Also, thanks for the 
>> point about the NFoldPartitioner. I'll switch over to the HalfPartitioner.
> 
>> I just sent you the data using the command you provided. Let me know if you 
>> don't get it.
> 
>> Cheers,
>> David
> 
> -- 
> =------------------------------------------------------------------=
> Keep in touch                                     www.onerussian.com
> Yaroslav Halchenko                 www.ohloh.net/accounts/yarikoptic
> 
> _______________________________________________
> Pkg-ExpPsy-PyMVPA mailing list
> [email protected]
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa


_______________________________________________
Pkg-ExpPsy-PyMVPA mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa

Reply via email to