Package classification

Examples of classification.MaxEntropy.batchTrain()


  public static LinearClassifier trainMaxEnt(
      ArrayList<ClassificationInstance> train, Alphabet xA, Alphabet yA) {
    MaxEntropy maxent = new MaxEntropy(10.0, xA, yA,
        new CompleteFeatureFunction(xA, yA));
    LinearClassifier h = maxent.batchTrain(train);
    return h;
  }

  public static LinearClassifier trainNaivBayes(
      ArrayList<ClassificationInstance> train, Alphabet xA, Alphabet yA) {
View Full Code Here


  public static LinearClassifier trainMaxEnt(
      ArrayList<ClassificationInstance> train, Alphabet xA, Alphabet yA) {
    MaxEntropy maxent = new MaxEntropy(10.0, xA, yA,
        new CompleteFeatureFunction(xA, yA));
    LinearClassifier h = maxent.batchTrain(train);
    return h;
  }

  public static LinearClassifier trainNaivBayes(
      ArrayList<ClassificationInstance> train, Alphabet xA, Alphabet yA) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.