Package com.yahoo.labs.taxomo.learn

Examples of com.yahoo.labs.taxomo.learn.CloserToOrigin


    logger.debug("Maximum states: " + maxStates);

    // Initialize candidate search policy
    SearchStrategy comparator;
    if (strategy.equals(CloserToOrigin.class)) {
      comparator = new CloserToOrigin(minLogProbability, maxLogProbability, minStates, maxStates, weight1);
    } else {
      try {
        comparator = (SearchStrategy) strategy.newInstance();
      } catch (InstantiationException e) {
        throw new IllegalArgumentException(e);
      } catch (IllegalAccessException e) {
        throw new IllegalArgumentException(e);
      }
    }
    logger.debug("Search strategy: " + comparator);
   
    // Initialize scorer (for the output)
    outputScorer = new CloserToOrigin(minLogProbability, maxLogProbability, minStates, maxStates, weight1);
    logger.debug("Output scorer: " + outputScorer);

    // Initialize set of candidates
    candidates = new PriorityQueue<Candidate>(100, comparator);
    addSubCandidates(initialCandidate);
View Full Code Here

TOP

Related Classes of com.yahoo.labs.taxomo.learn.CloserToOrigin

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.