Package classification

Examples of classification.Perceptron


  }

  public static LinearClassifier trainPerceptron(boolean doAveraging,
      int numIters, ArrayList<ClassificationInstance> train, Alphabet xA,
      Alphabet yA) {
    Perceptron p = new Perceptron(doAveraging, numIters, xA, yA,
        new CompleteFeatureFunction(xA, yA));
    LinearClassifier h = p.batchTrain(train);
    return h;
  }
View Full Code Here


  }

  public static LinearClassifier trainPerceptron(boolean doAveraging,
      int numIters, ArrayList<ClassificationInstance> train, Alphabet xA,
      Alphabet yA) {
    Perceptron p = new Perceptron(doAveraging, numIters, xA, yA,
        new CompleteFeatureFunction(xA, yA));
    LinearClassifier h = p.batchTrain(train);
    return h;
  }
View Full Code Here

TOP

Related Classes of classification.Perceptron

Copyright © 2018 www.massapicom. 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.