edu.stanford.nlp.classify
Class CrossValidator

java.lang.Object
  |
  +--edu.stanford.nlp.classify.CrossValidator

public class CrossValidator
extends Object

This class takes a probability set and does cross-validation for as many folds as desired.


Constructor Summary
CrossValidator(ProbabilitySet ps, int num_folds, int classes)
          The constructor requires the ProbabilitySet that contains the data, the number of folds, and the number of classes (categories).
 
Method Summary
 void validate()
          This method performs cross validation according to the parameters passed in to the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrossValidator

public CrossValidator(ProbabilitySet ps,
                      int num_folds,
                      int classes)
The constructor requires the ProbabilitySet that contains the data, the number of folds, and the number of classes (categories).

Method Detail

validate

public void validate()
              throws IOException
This method performs cross validation according to the parameters passed in to the constructor.

IOException


Stanford NLP Group