Package weka.filters.supervised.attribute

Examples of weka.filters.supervised.attribute.NominalToBinary


      data.deleteWithMissingClass();
    }

    // Preprocess instances
    if (!m_checksTurnedOff) {
      m_TransformFilter = new NominalToBinary();
      m_TransformFilter.setInputFormat(data);
      data = Filter.useFilter(data, m_TransformFilter);
      m_MissingFilter = new ReplaceMissingValues();
      m_MissingFilter.setInputFormat(data);
      data = Filter.useFilter(data, m_MissingFilter);
View Full Code Here


      data.deleteWithMissingClass();
    }

    // Preprocess instances
    if (!m_checksTurnedOff) {
      m_TransformFilter = new NominalToBinary();
      m_TransformFilter.setInputFormat(data);
      data = Filter.useFilter(data, m_TransformFilter);
      m_MissingFilter = new ReplaceMissingValues();
      m_MissingFilter.setInputFormat(data);
      data = Filter.useFilter(data, m_MissingFilter);
View Full Code Here

   * @throws Exception if an error occurs
   */
  private void cleanUpData(Instances data)throws Exception{

    m_Data = data;
    m_TransformFilter = new NominalToBinary();
    m_TransformFilter.setInputFormat(m_Data);
    m_Data = Filter.useFilter(m_Data, m_TransformFilter);
    m_MissingFilter = new ReplaceMissingValues();
    m_MissingFilter.setInputFormat(m_Data);
    m_Data = Filter.useFilter(m_Data, m_MissingFilter);
View Full Code Here

    m_replaceMissing = new ReplaceMissingValues();
    m_replaceMissing.setInputFormat(m_instances);
    m_instances = Filter.useFilter(m_instances, m_replaceMissing);

    m_nominalToBinary = new NominalToBinary();
    m_nominalToBinary.setInputFormat(m_instances);
    m_instances = Filter.useFilter(m_instances, m_nominalToBinary);

    m_removeUseless = new RemoveUseless();
    m_removeUseless.setInputFormat(m_instances);
View Full Code Here

    m_replaceMissing.setInputFormat(filteredData)
    filteredData = Filter.useFilter(filteredData, m_replaceMissing)
 
    //possibly convert nominal attributes globally
    if (m_convertNominal) {     
      m_nominalToBinary = new NominalToBinary();
      m_nominalToBinary.setInputFormat(filteredData)
      filteredData = Filter.useFilter(filteredData, m_nominalToBinary);
    }

    int minNumInstances = 2;
View Full Code Here

    m_replaceMissing.setInputFormat(filteredData)
    filteredData = Filter.useFilter(filteredData, m_replaceMissing);
   
    //possibly convert nominal attributes globally
    if (m_convertNominal) {     
      m_nominalToBinary = new NominalToBinary();
      m_nominalToBinary.setInputFormat(filteredData)
      filteredData = Filter.useFilter(filteredData, m_nominalToBinary);
    }
 
    int minNumInstances = 2
View Full Code Here

    m_replaceMissing.setInputFormat(filteredData)
    filteredData = Filter.useFilter(filteredData, m_replaceMissing)
 
    //possibly convert nominal attributes globally
    if (m_convertNominal) {     
      m_nominalToBinary = new NominalToBinary();
      m_nominalToBinary.setInputFormat(filteredData)
      filteredData = Filter.useFilter(filteredData, m_nominalToBinary);
    }

    int minNumInstances = 2;
View Full Code Here

   * @throws Exception if an error occurs
   */
  private void cleanUpData(Instances data)throws Exception{

    m_Data = data;
    m_TransformFilter = new NominalToBinary();
    m_TransformFilter.setInputFormat(m_Data);
    m_Data = Filter.useFilter(m_Data, m_TransformFilter);
    m_MissingFilter = new ReplaceMissingValues();
    m_MissingFilter.setInputFormat(m_Data);
    m_Data = Filter.useFilter(m_Data, m_MissingFilter);
View Full Code Here

    m_replaceMissing.setInputFormat(filteredData)
    filteredData = Filter.useFilter(filteredData, m_replaceMissing);
   
    //possibly convert nominal attributes globally
    if (m_convertNominal) {     
      m_nominalToBinary = new NominalToBinary();
      m_nominalToBinary.setInputFormat(filteredData)
      filteredData = Filter.useFilter(filteredData, m_nominalToBinary);
    }
 
    int minNumInstances = 2
View Full Code Here

     */
    protected int tryLogistic(Instances data) throws Exception{
 
  //convert nominal attributes
  Instances filteredData = new Instances(data)
  NominalToBinary nominalToBinary = new NominalToBinary();     
  nominalToBinary.setInputFormat(filteredData);
  filteredData = Filter.useFilter(filteredData, nominalToBinary)
 
  LogisticBase logistic = new LogisticBase(0,true,m_errorOnProbabilities);
 
  //limit LogitBoost to 200 iterations (speed)
View Full Code Here

TOP

Related Classes of weka.filters.supervised.attribute.NominalToBinary

Copyright © 2018 www.massapicom. 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.