Examples of Candidate


Examples of com.company.client.domain.Candidate

    // Do something interesting with 's' here on the server.
    return s;
  }
 
  public ArrayList<Candidate> getCandidates() {
    Candidate candidate1 = new Candidate("Obama", 45);
    Candidate candidate2 = new Candidate("Hillary", 60);
    ArrayList<Candidate> candidates = new ArrayList<Candidate>();
    candidates.add(candidate1);
    candidates.add(candidate2);
    LOGGER.info("returning candidates list");
    return candidates;
View Full Code Here

Examples of com.sun.tools.javac.comp.Resolve.MethodResolutionContext.Candidate

        public Symbol access(Name name, TypeSymbol location) {
            return types.createErrorType(name, location, syms.errSymbol.type).tsym;
        }

        protected Pair<Symbol, JCDiagnostic> errCandidate() {
            Candidate bestSoFar = null;
            for (Candidate c : resolveContext.candidates) {
                if (c.isApplicable()) continue;
                bestSoFar = c;
            }
            Assert.checkNonNull(bestSoFar);
View Full Code Here

Examples of com.sun.tools.javac.comp.Resolve.MethodResolutionContext.Candidate

        private boolean internalResolution = false;
        private DeferredAttr.AttrMode attrMode = DeferredAttr.AttrMode.SPECULATIVE;

        void addInapplicableCandidate(Symbol sym, JCDiagnostic details) {
            Candidate c = new Candidate(currentResolutionContext.step, sym, details, null);
            candidates = candidates.append(c);
        }
View Full Code Here

Examples of com.sun.tools.javac.comp.Resolve.MethodResolutionContext.Candidate

            Candidate c = new Candidate(currentResolutionContext.step, sym, details, null);
            candidates = candidates.append(c);
        }

        void addApplicableCandidate(Symbol sym, Type mtype) {
            Candidate c = new Candidate(currentResolutionContext.step, sym, null, mtype);
            candidates = candidates.append(c);
        }
View Full Code Here

Examples of com.tcs.hrr.domain.Candidate

  }

  public Candidate findById(java.lang.Integer id) {
    log.debug("getting Candidate instance with id: " + id);
    try {
      Candidate instance = (Candidate) getHibernateTemplate().get(
          "com.tcs.hrr.domain.Candidate", id);
      return instance;
    } catch (RuntimeException re) {
      log.error("get failed", re);
      throw re;
View Full Code Here

Examples of com.tcs.hrr.domain.Candidate

  }

  public Candidate merge(Candidate detachedInstance) {
    log.debug("merging Candidate instance");
    try {
      Candidate result = (Candidate) getHibernateTemplate().merge(
          detachedInstance);
      log.debug("merge successful");
      return result;
    } catch (RuntimeException re) {
      log.error("merge failed", re);
View Full Code Here

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

      logger.info("Learning model for cluster " + clusterNum);

      // Clone initial candidate (so that it does not have a set
      // logProbability)
      Candidate initialCandidate = prototypeInitialCandidate.clone();

      // Initialize weight1 for model
      double weight1 = learnerMaxWeight1 != -1 ? learnerMaxWeight1 : 1.0;

      // Create and set-up learner
View Full Code Here

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

    // Load tree
    File taxoFile = new File(jsapResult.getString("taxonomy-file"));
    Taxonomy tree = new Taxonomy(taxoFile);

    // Build initial candidate
    Candidate initialCandidate;
    if (jsapResult.userSpecified("init-explicit")) {
      initialCandidate = new Candidate(tree, Util.split(jsapResult.getString("init-explicit")), null, null);

    } else if (jsapResult.userSpecified("init-all-level")) {
      initialCandidate = Candidate.createFixedLevelCandidate(tree, jsapResult.getInt("init-all-level"));

    } else if (jsapResult.getBoolean("init-all-leaves")) {
      initialCandidate = Candidate.createLeafCandidate(tree);

    } else {
      throw new IllegalArgumentException("Either --init-explicit, --init-all-leaves, or --init-all-level should be specified. See --help.");
    }
    logger.debug("Initial candidate is " + initialCandidate.toBriefString());

    // Set learning parameters
    Class<SearchStrategy> strategy = (Class<SearchStrategy>) Class.forName(SearchStrategy.class.getPackage().getName() + "." + jsapResult.getString("search-method"));
    logger.debug("Search strategy is " + strategy);
View Full Code Here

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

    // Compute minProbability
    logger.debug("Evaluating minimum probability");
    ArrayList<String> rootStateOnly = new ArrayList<String>(1);
    rootStateOnly.add(tree.getRootState().name());
    Candidate singleStateCandidate = new Candidate(tree, rootStateOnly, null, null);
    doSlowEvaluation(singleStateCandidate);
    minLogProbability = singleStateCandidate.getLogProbability();
    logger.debug("Minimum probability: " + minLogProbability);

    // Compute maxProbability
    logger.debug("Evaluating maximum probability");
    doSlowEvaluation(initialCandidate);
View Full Code Here

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

  @SuppressWarnings("boxing")
  void printReport(PrintWriter out) throws IOException {

    logger.info( "Preparing to write log file: re-sorting by experiment number");
    // Sort candidates by experiment number
    Candidate resultsSorted[] = results.keySet().toArray(new Candidate[] {});
    Arrays.sort(resultsSorted, new Comparator<Candidate>() {
      public int compare(Candidate arg0, Candidate arg1) {
        int it0 = results.get(arg0).intValue();
        int it1 = results.get(arg1).intValue();
        if (it0 < it1) {
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.