No subject


Sun Jan 16 06:41:43 UTC 2011


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dclf =3D LinearN=
uSVMC()nd =3D MCNullDist(permutations=3D1000=2Ctail=3D'left'=2Cenable_state=
s=3D['dist_samples'])terr =3D TransferError(clf=2Cnull_dist=3Dnd)cv =3D Cro=
ssValidatedTransferError(terr=2CNFoldSplitter()=2Cenable_states=3D['confusi=
on'])error =3D cv(dataset)P_value =3D terr.null_probPerm_samples =3D nd.dis=
t_samples=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Is the above code correct? Is the permutation automatically performed for t=
he training dataset in each fold?
Many thanks=2CMeng 		 	   		  =

--_34022e58-46ca-41a4-8ff6-5f22cdf358c6_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 10pt=3B
font-family:Tahoma
}
--></style>
</head>
<body class=3D'hmmessage'>
Dear PyMVPA users=2C<div><br></div><div>Sorry for posting this question aga=
in (as I haven't received any answer to my previous post).&nbsp=3B</div><di=
v><br></div><div>From the permutation test example in the manual=2C I suppo=
se the code for performing permutation test for cross-validation is like:</=
div><div><br></div><div>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D</div><div>clf =3D LinearNuSVMC()</div><div><div>nd =3D MCNullDist=
(permutations=3D1000=2Ctail=3D'left'=2Cenable_states=3D['dist_samples'])</d=
iv><div>terr =3D TransferError(clf=2Cnull_dist=3Dnd)</div><div>cv =3D Cross=
ValidatedTransferError(terr=2CNFoldSplitter()=2Cenable_states=3D['confusion=
'])</div></div><div><div>error =3D cv(dataset)</div><div>P_value =3D terr.n=
ull_prob</div><div>Perm_samples =3D nd.dist_samples</div></div><div>=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</div><div><br></div>=
<div>Is the above code correct? Is the permutation automatically performed =
for the training dataset in each fold?</div><div><br></div><div>Many thanks=
=2C</div><div>Meng</div> 		 	   		  </body>
</html>=

--_34022e58-46ca-41a4-8ff6-5f22cdf358c6_--



More information about the Pkg-ExpPsy-PyMVPA mailing list