nl_tokens: Record the result of a new classes experiment .
pl_tokens: function ( expectedClasses , actualClasses , logTruePositives ) { var explanations = [ ] ; actualClasses = hash . normalized ( actualClasses ) ; expectedClasses = hash . normalized ( expectedClasses ) ; var allTrue = <mask> ; for ( var actualClass in actualClasses ) { if ( actualClass in expectedClasses ) { if ( logTruePositives ) explanations . push ( "\t\t+++ TRUE POSITIVE: " + actualClass ) ; this . TP ++ ; } else { explanations . push ( "\t\t--- FALSE POSITIVE: " + actualClass ) ; this . FP ++ ; allTrue = false ; } } for ( var expectedClass in expectedClasses ) { if ( ! ( expectedClass in actualClasses ) ) { explanations . push ( "\t\t--- FALSE NEGATIVE: " + expectedClass ) ; this . FN ++ ; allTrue = false ; } } if ( allTrue ) { if ( logTruePositives ) explanations . push ( "\t\t*** ALL TRUE!" ) ; this . TRUE ++ ; } this . count ++ ; return explanations ; }