Package sequence

Examples of sequence.TwoYwithXFeatureFunction


  }

  public static LinearTagger trainMira(boolean doAveraging, int numIters,
      ArrayList<SequenceInstance> train, Alphabet xA, Alphabet yA) {
    Mira p = new Mira(doAveraging, numIters, xA, yA,
        new TwoYwithXFeatureFunction(xA, yA), new HammingLoss());
    LinearTagger h = p.batchTrain(train);
    return h;
  }
View Full Code Here


  @SuppressWarnings("unused")
  private LinearTagger trainMira(ArrayList<SequenceInstance> data,
      Alphabet xA, Alphabet yA, int numIters, boolean doAveraging) {

    Mira mira = new Mira(doAveraging, numIters, xA, yA,
        new TwoYwithXFeatureFunction(xA, yA), new HammingLoss());
    return mira.batchTrain(data);
  }
View Full Code Here

TOP

Related Classes of sequence.TwoYwithXFeatureFunction

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.