expGetE {FKBL}R Documentation

Creates the ERROR vector

Description

This eases the realization of an experiment. It gets an error vector, from a vector of classes.

Usage

 expGetE(test,classes,errorfunc=NULL)

Arguments

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.

Value

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}

Examples

 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);

[Package FKBL version 0.50-4 Index]