public synchronized int getCount ( T actual , T predicted ) { if ( ! matrix . containsKey ( actual ) ) { return 0 ; } else { return matrix . get ( actual ) . count ( predicted ) ; } }
Gives the count of the number of times the predicted class was predicted for the actual class .