Package weka.attributeSelection

Examples of weka.attributeSelection.AttributeSelection.SelectAttributes()


   */
  public void evaluateAttributes(String corpusName, String featureSetName,
      String splitName, Instances inst, String label, Integer run,
      Integer fold) throws Exception {
    AttributeSelection ae = this.getAttributeSelection();
    ae.SelectAttributes(inst);
    double rankedAttributes[][] = ae.rankedAttributes();
    FeatureEvaluation fe = initializeFeatureEvaluation(corpusName,
        featureSetName, splitName, label, run, fold);
    List<FeatureRank> featureRanks = new ArrayList<FeatureRank>(
        rankedAttributes.length);
View Full Code Here


      }
           
      switch (testMode) {
        case 0: // select using training
        m_Log.statusMessage(Messages.getInstance().getString("AttributeSelectionPanel_StartAttributeSelection_Run_Log_StatusMessage_Text_First"));
        eval.SelectAttributes(inst);
        break;

        case 1: // CV mode
        m_Log.statusMessage(Messages.getInstance().getString("AttributeSelectionPanel_StartAttributeSelection_Run_Log_StatusMessage_Text_Second"));
        Random random = new Random(seed);
View Full Code Here

      }
           
      switch (testMode) {
        case 0: // select using training
        m_Log.statusMessage("Evaluating on training data...");
        eval.SelectAttributes(inst);
        break;

        case 1: // CV mode
        m_Log.statusMessage("Randomizing instances...");
        Random random = new Random(seed);
View Full Code Here

      }
           
      switch (testMode) {
        case 0: // select using training
        m_Log.statusMessage("Evaluating on training data...");
        eval.SelectAttributes(inst);
        break;

        case 1: // CV mode
        m_Log.statusMessage("Randomizing instances...");
        Random random = new Random(seed);
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.