Examples of Feature


Examples of edu.uci.jforestsx.dataset.Feature

          bestGain = currentGain;
        }
      }
    }

    Feature feature = curTrainSet.dataset.features[split.feature];
    split.threshold = feature.upperBounds[bestThreshold];
    split.originalThreshold = feature.getOriginalValue(split.threshold);
   
    RegressionTreeSplit regressionSplit = (RegressionTreeSplit) split;
    regressionSplit.leftOutput = bestSumLeftTargets / bestWeightedLeftCount;
    regressionSplit.rightOutput = (regHistogram.sumTargets - bestSumLeftTargets) / (histogram.totalWeightedCount - bestWeightedLeftCount);
View Full Code Here

Examples of gherkin.formatter.model.Feature

        stash.tag(new Tag(tag, line));
    }

    @Override
    public void feature(String keyword, String name, String description, Integer line) {
        formatter.feature(new Feature(stash.comments, stash.tags, keyword, name, description, line, stash.featureId(name)));
        stash.reset();
    }
View Full Code Here

Examples of htsjdk.tribble.Feature

     * @param actIter
     * @throws AssertionError
     */
    public static void assertFeatureListsEqual(Iterator<? extends Feature> expected, Iterator<? extends Feature> actIter) throws AssertionError {
        while (expected.hasNext()) {
            Feature exp = expected.next();
            assertTrue(actIter.hasNext());
            Feature act = actIter.next();
            assertFeaturesEqual(exp, act);
        }
        assertFalse(actIter.hasNext());
    }
View Full Code Here

Examples of ivory.ffg.feature.Feature

    } else {
      throw new ClassNotFoundException("Scoring function class not found!");
    }


    Feature feature = null;

    if(featureClass.equals(TermFeature.class.getName())) {
      feature = new TermFeature();
    } else if(featureClass.equals(OrderedWindowSequentialDependenceFeature.class.getName())) {
      int w = Integer.parseInt(element.getAttribute("width"));
      feature = new OrderedWindowSequentialDependenceFeature(w);
    } else if(featureClass.equals(UnorderedWindowSequentialDependenceFeature.class.getName())) {
      int w = Integer.parseInt(element.getAttribute("width"));
      feature = new UnorderedWindowSequentialDependenceFeature(w);
    } else {
      throw new ClassNotFoundException("Feature class not found!");
    }

    feature.initialize(scoringFunction);
    return feature;
  }
View Full Code Here

Examples of javax.ws.rs.core.Feature

            if (processed.contains(registration)) {
                LOGGER.config(LocalizationMessages.FEATURE_HAS_ALREADY_BEEN_PROCESSED(registration.getFeatureClass()));
                continue;
            }

            Feature feature = registration.getFeature();
            if (feature == null) {
                feature = locator.create(registration.getFeatureClass());
            } else {
                // Disable injection of Feature instances on the client-side. Instances may be registered into multiple
                // web-targets which means that injecting anything into these instances is not safe.
                if (!RuntimeType.CLIENT.equals(type)) {
                    locator.inject(feature);
                }
            }

            if (enabledFeatures.contains(feature)) {
                LOGGER.config(LocalizationMessages.FEATURE_HAS_ALREADY_BEEN_PROCESSED(feature));
                continue;
            }

            if (featureContextWrapper == null) {
                // init lazily
                featureContextWrapper = new FeatureContextWrapper(this, locator);
            }
            final boolean success = feature.configure(featureContextWrapper);

            if (success) {
                processed.add(registration);

                configureFeatures(locator, processed, resetRegistrations());
View Full Code Here

Examples of net.fortytwo.twitlogic.persistence.beans.Feature

            public void handle(final Place p) throws HandlerException {
                //System.out.println("received this place: " + p.getJson());
                client.getStatistics().placeDereferenced(p);

                if (0 < p.getContainedWithin().size()) {
                    Feature f = pContext.persist(p);
                    // Refreshing the parent features is all-or-nothing.
                    Set<Feature> parents = new HashSet<Feature>();

                    for (Place par : p.getContainedWithin()) {
                        //System.out.println("and this is a parent: " + par.getJson());

                        Feature parf = pContext.persist(par);
                        parents.add(parf);
                        try {
                            submit(par, parf);
                        } catch (TwitterClientException e) {
                            throw new HandlerException(e);
View Full Code Here

Examples of net.masterthought.cucumber.json.Feature

    @Test
    public void shouldProcessFeatureWhenNoScenarios() throws IOException {
        List<String> jsonReports = new ArrayList<String>();
        jsonReports.add(getAbsolutePathFromResource("net/masterthought/cucumber/noscenario.json"));
        ReportParser reportParser = new ReportParser(jsonReports);
        Feature feature = reportParser.getFeatures().entrySet().iterator().next().getValue().get(0);
        feature.processSteps();
    }
View Full Code Here

Examples of opennlp.ccg.perceptron.Alphabet.Feature

 
  /** Returns the dot product of the weights and features. */
  public double score(FeatureVector fv) {
    double retval = 0.0;
    for (FeatureVector.Iterator it = fv.iterator(); it.hasNext(); ) {
      Feature feat = it.nextFeature();
      Float value = it.nextValue();
      Integer index = feat.getIndex();
      if (index == null) continue;
      retval += weights[index] * value;
    }
    if (debug) System.err.println("score: " + retval + " " + fv);
    return retval;
View Full Code Here

Examples of org.apache.abdera.ext.features.Feature

    }

    @Test
    public void testType() throws Exception {
        Abdera abdera = Abdera.getInstance();
        Feature feature = abdera.getFactory().newElement(FeaturesHelper.FEATURE);
        feature.addType("image/jpg", "image/gif", "image/png", "image/*");
        String[] types = feature.getTypes();
        assertEquals(1, types.length);
        assertEquals("image/*", types[0]);
    }
View Full Code Here

Examples of org.apache.batik.svggen.font.table.Feature

        if (gsub != null) {
            Script s = gsub.getScriptList().findScript(SCRIPT_TAG_ARAB);
            if (s != null) {
                LangSys ls = s.getDefaultLangSys();
                if (ls != null) {
                    Feature init = gsub.getFeatureList().findFeature(ls, FEATURE_TAG_INIT);
                    Feature medi = gsub.getFeatureList().findFeature(ls, FEATURE_TAG_MEDI);
                    Feature fina = gsub.getFeatureList().findFeature(ls, FEATURE_TAG_FINA);
                   
                    initialSubst = (SingleSubst)
                        gsub.getLookupList().getLookup(init, 0).getSubtable(0);
                    medialSubst = (SingleSubst)
                        gsub.getLookupList().getLookup(medi, 0).getSubtable(0);
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.