mark.nlp.classifiers
Class SimpleResults

java.lang.Object
  |
  +--mark.nlp.classifiers.SimpleResults
All Implemented Interfaces:
Results

public class SimpleResults
extends java.lang.Object
implements Results

A Results object that just stores the confusion matrix.


Field Summary
 Table fConfusions
           
 
Constructor Summary
SimpleResults(int[] predictions, SparseBagInstance[] bags, int numCats)
          Initializes a results object using a Node.
 
Method Summary
 double score()
          Returns percentage correct.
 java.lang.String toString()
          Provides a detailed textual account of results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fConfusions

public Table fConfusions
Constructor Detail

SimpleResults

public SimpleResults(int[] predictions,
                     SparseBagInstance[] bags,
                     int numCats)
Initializes a results object using a Node.

Parameters:
bags - the instances to test.
numCats - the number of categories.
Method Detail

score

public double score()
Description copied from interface: Results
Returns percentage correct.

Specified by:
score in interface Results
Returns:
percentage correct.
See Also:
Results

toString

public java.lang.String toString()
Description copied from interface: Results
Provides a detailed textual account of results.

Specified by:
toString in interface Results
Overrides:
toString in class java.lang.Object
Returns:
a detailed textual representation.
See Also:
Results