PRINT_CMATRIX_LNK(1)

NAME
print_cmatrix_lnk - print confusion matrix with class names instead of numbers

SYNOPSIS
print_cmatrix_lnk -flog f

OPTIONS
LNKnet log file from a recent experiment Prints man page describing this function

DESCRIPTION
print_cmatrix_lnk prints confusion matrices included in the normal LNKnet log file but with class names instead of numbers. It extracts confusion matrices from the log file and replaces the class numbers with class names. Only the first four characters of class names is kept along the top of the confusion matrix and only the first nine characters is kept along the left. The revised confusion matrix is printed on the standard output.

EXAMPLE RUN AND OUTPUT
    print_cmatrix_lnk.pl -flog X1svm.log
 Desired                          Computed Class
 Class   head  hid   hod   had   hawe  hear  heed  hud   whod  hood  Total
  -----   ----  ----  ----  ----  ----  ----  ----  ----  ----  ----  -----
  head      13     1           2           1                             17
  hid             16                             2                       18
  hod                   17                             3                 20
  had        1                15           1           1                 18
  hawed                  2          13                             1     16
  heard      1                             6                       4     11
  heed                                          18                       18
  hud                    1     1     1                15                 18
  whod                                                      14     2     16
  hood                                     3           1     2     8     14
   -----   ----  ----  ----  ----  ----  ----  ----  ----  ----  ----  -----
        Total    15    17    20    18    14    11    20    20    16    15    166

LIMITATIONS
Doesn't print the full class names because there is not enough room. This can sometimes make class names appear identical. Also doesn't print the many two-class confusion matrices in the support vector machine log file but just prints the final confusion matrix.

The first line of the print_cmatrix_lnk file is the path to perl on your system. It sometimes needs to be changed by hand to point to where perl is located on different systems.

AUTHOR
Richard Lippmann - 1 Sept 2003 - MIT Lincoln Laboratory