Examples of Remove


Examples of weka.filters.unsupervised.attribute.Remove

      removeList += "" + (i + 1) + ",";
    }

    if (removeList.length() > 0) {
      removeList = removeList.substring(0, removeList.lastIndexOf(','));
      m_extraneousAttributeRemover = new Remove();
      m_extraneousAttributeRemover.setAttributeIndices(removeList);
      m_extraneousAttributeRemover.setInputFormat(insts);
      insts = Filter.useFilter(insts, m_extraneousAttributeRemover);
    }
View Full Code Here

Examples of weka.filters.unsupervised.attribute.Remove

        String[] optionsDel = new String[2];
      optionsDel[0] = "-R";                                  
      optionsDel[1] = "";
      for (int i = 0; i < rmAttributes.length; i++)
        optionsDel[1] += (1+data.attribute(rmAttributes[i]).index()) + ",";    
      Remove remove = new Remove();                        
      remove.setOptions(optionsDel);
        remove.setInputFormat(data);
        data = Filter.useFilter(data, remove);
      }
      // setting class attribute if the data format does not provide this information
      // E.g., the XRFF format saves the class attribute information as well
      if (data.classIndex() == -1)
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.