Examples of extractFeatures()


Examples of com.github.pmerienne.trident.ml.nlp.TFIDF.extractFeatures()

    tfidf.init(training, 20);

    // Then
    // System.out.println(Arrays.toString(tfidf.extractFeatures(d3)));
    // System.out.println(Arrays.toString(tfidf.extractFeatures(d6)));
    assertNotNull(tfidf.extractFeatures(d3));
    assertNotNull(tfidf.extractFeatures(d6));

  }
}
View Full Code Here

Examples of com.github.pmerienne.trident.ml.nlp.TFIDF.extractFeatures()

    // Then
    // System.out.println(Arrays.toString(tfidf.extractFeatures(d3)));
    // System.out.println(Arrays.toString(tfidf.extractFeatures(d6)));
    assertNotNull(tfidf.extractFeatures(d3));
    assertNotNull(tfidf.extractFeatures(d6));

  }
}
View Full Code Here

Examples of etc.aloe.processes.FeatureExtraction.extractFeatures()

        System.out.println("== Labeling and Testing ==");

        //First extract features
        FeatureExtraction extraction = getFeatureExtractionImpl();
        ExampleSet examples = extraction.extractFeatures(segmentSet.getBasicExamples(), featureSpecification);

        this.featureValues = examples.getInstances();
       
        //Predict the labels
        Predictions predictions = this.model.getPredictions(examples);
View Full Code Here

Examples of etc.aloe.processes.FeatureExtraction.extractFeatures()

        FeatureGeneration generation = getFeatureGenerationImpl();
        this.featureSpecification = generation.generateFeatures(basicExamples);

        //Extract features
        FeatureExtraction extraction = getFeatureExtractionImpl();
        ExampleSet examples = extraction.extractFeatures(basicExamples, this.featureSpecification);

        //Train the model
        Training training = getTrainingImpl();
        this.featureValues = examples.getInstances();
        this.model = training.train(examples);
View Full Code Here

Examples of etc.aloe.processes.FeatureExtraction.extractFeatures()

                System.out.println("- Generating features");
                FeatureSpecification spec = generation.generateFeatures(basicTrainingExamples);

                FeatureExtraction extraction = getFeatureExtractionImpl();
                System.out.println("- Extracting features from training set");
                ExampleSet trainingSet = extraction.extractFeatures(basicTrainingExamples, spec);
                basicTrainingExamples = null;

                Training training = getTrainingImpl();
                Model model = training.train(trainingSet);
                trainingSet = null;
View Full Code Here

Examples of etc.aloe.processes.FeatureExtraction.extractFeatures()

                System.out.println("- Extracting basic features from test set");
                ExampleSet basicTestingExamples = testingSegments.getBasicExamples();

                System.out.println("- Extracting features from test set");
                ExampleSet testingSet = extraction.extractFeatures(basicTestingExamples, spec);
                basicTestingExamples = null;

                Predictions predictions = model.getPredictions(testingSet);
                EvaluationReport report = new EvaluationReport("Fold " + (foldIndex + 1), falsePositiveCost, falseNegativeCost);
                report.addPredictions(predictions);
View Full Code Here

Examples of etc.aloe.processes.FeatureExtraction.extractFeatures()

            //First extract features
            FeatureExtraction extraction = getFeatureExtractionImpl();
            extraction.setVerbosity(Loggable.Verbosity.Quiet);

            ExampleSet examples = extraction.extractFeatures(segmentSet.getBasicExamples(), featureSpecification);

            //Predict the labels
            Predictions prediction = this.model.getPredictions(examples);

            //Map back onto messages
View Full Code Here

Examples of org.jamesii.perfdb.recording.features.FeatureExtraction.extractFeatures()

    try {
      IPerformanceDatabase perfDB = SimSpExPerspective.getPerformanceDataBase();
      perfDB.open();
      FeatureExtraction fExtraction = new FeatureExtraction(perfDB);
      FeatureExtraction.refreshFeatureExtractors(perfDB);
      fExtraction.extractFeatures();
    } catch (Exception ex) {
      SimSystem.report(Level.SEVERE, null, ex.getMessage(), null, ex);
    }
    SimSystem.report(Level.INFO, "Finished feature extraction.");
  }
View Full Code Here

Examples of org.jamesii.perfdb.recording.features.FeatureExtraction.extractFeatures()

   *           the exception
   */
  public void extractFeatures(IPerformanceDatabase perfDB) throws Exception {
    FeatureExtraction.refreshFeatureExtractors(perfDB);
    FeatureExtraction featureExtraction = new FeatureExtraction(perfDB);
    featureExtraction.extractFeatures();
    featureTypes = perfDB.getAllFeatureTypes();
  }

  /**
   * Gets the feature types.
View Full Code Here

Examples of org.vocvark.jAudioTools.FeaturesExtractionProcessor.extractFeatures()

                new Cancel(),
                aggregatorContainer
        );
        List<ExtractionResult> result = new ArrayList<ExtractionResult>(recordings.length);
        for (RecordingInfo recording : recordings) {
            result.add(processor.extractFeatures(recording, null));
        }

        return result;
    }
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.