Hi Mathieu
in 2.0.9 is possible to use different priors for computation of the mean error. For example:
>> load fruit
>> pd=sdgauss*sddecide
untrained pipeline 2 steps: sdgauss+sdp_decide
>>sdcrossval(pd,a,'folds',2,'measures',{'mean-error',[0.8 0.1 0.1]})
2 folds: [1: ] [2: ]
ans =
2-fold rotation
ind mean (std) measure
1 0.10 (0.02) mean error over classes, priors [0.8,0.1,0.1]
2 0.13 (0.01) mean error over classes, priors [0.3,0.3,0.3]
Note that sdcrossval includes the mean error with equal priors by default
Carmen