weighted_error_rate: Weighted error rate

Description Usage Arguments Details Value Author(s)


If different types of errors are associated with different costs a weighted error function might be more appropriate than the standard.





Cost matrix or factor response vector.


This function is not in itself an error function, but used to generate error functions. Either supply a predefined cost matrix or a response vector for a classification problem to define it automatically.

The automatically generated cost matrix will generate an error of 0 if all predictions are correct, 1 if all predictions are incorrect and 0.5 if all predictions are the same (regardless of class, i.e. if one class is smaller it will be given a higher misclassification cost).


An error function.


Christofer B├Ącklin

Search within the emil package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.