expGetE {FKBL} | R Documentation |
This eases the realization of an experiment. It gets an error vector, from a vector of classes.
expGetE(test,classes,errorfunc=NULL)
Takes the test data, the classes vector and the error function.
test |
The test dataset. |
classes |
The vector of classes. |
errorfunc |
The error function to be used. If none is provided the default one is used. The function provided must respect the original function input format. |
Returns a dataset with the errors.
Here is the expected result for the example.
begin{ExampleCode}
confS0 confS1 confS2 confS3 confS4 ana rew mich hyb pitt es
1 0 0 0 0 0 0 0 0 0 0 0
end{ExampleCode}
data(trainM) print(trainM) kBs<-expGetKb(trainM[1:8,],P=getPart(trainM[1:8,],10)) cl<-expGetCl(trainM[9,],kBs) error<-expGetE(trainM[9,],cl) #prints the actual error dataset print(error);