Generate "Error Correcting Output Codes (ECOC)" matrix

This simple code, generates the ECOC matrix for both dense and sparse schemes.
437 Downloads
Updated 17 Apr 2012

View License

This simple code, generates the ECOC matrix for both dense and sparse schemes. It is more efficient in terms of speed than previously seen Matlab files to generate ECOC codes. This efficiency is due to two improvements:
1- it produces each column at a single command
2- Before generation of the whole matrix, it checks the validity of the ECOC Matrix by checking two criteria:
A: 1st criterion: each column had to have at least one +1 and one -1 value
B: 2nd criterion: each column and its negative should not be the same as its previous columns

This efficiency is more important in problems with relatively large number of classes..

Please kindly cite:
Bagheri, M. A., Gao, Q. and Escalera, S., "Efficient pairwise classification using Local Cross Off strategy", to appear, The 25th Canadian Conference on Artificial Intelligence (AI 2012), Toronto, May 28 - 30, 2012.

Cite As

Mohammad Ali Bagheri (2026). Generate "Error Correcting Output Codes (ECOC)" matrix (https://nl.mathworks.com/matlabcentral/fileexchange/36223-generate-error-correcting-output-codes-ecoc-matrix), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0