[pymvpa] activating ca.stats without a classifier

Yaroslav Halchenko debian at onerussian.com
Sat Jan 11 18:56:30 UTC 2014


On Sat, 11 Jan 2014, Jessica Goold wrote:

>    Hi All,
>    I was wondering if it was possible to enable ca.stats when just using�
>    clf = LinearCSVMC()
>    clf.train(ds1)
>    predictions = clf.predict(ds2.samples)

quick reply for now -- try if works ;)

cm = ConfusionMatrix(targets=ds2.targets, predictions=predictions)

will provide you the 'stats' ;)

-- 
Yaroslav O. Halchenko, Ph.D.
http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org
Senior Research Associate,     Psychological and Brain Sciences Dept.
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        



More information about the Pkg-ExpPsy-PyMVPA mailing list