Package weka.filters.unsupervised.attribute

Examples of weka.filters.unsupervised.attribute.Discretize


  /* private object used for parsing */
  private String[] class_bounds;
  private double min, max;
 
  public WekaBinClassifier(){
    discretize = new Discretize();
    super.classifier = new J48();
  }
View Full Code Here


    data.deleteAttributeAt(0); //remove the bagIndex attribute;


    // Assume the order of the instances are preserved in the Discretize filter
    if(m_DiscretizeBin > 0){
      m_Filter = new Discretize();
      m_Filter.setInputFormat(new Instances(data, 0));
      m_Filter.setBins(m_DiscretizeBin);
      data = Filter.useFilter(data, m_Filter);
    }
View Full Code Here

                filt_hold = Filter.useFilter(filt_hold, theRemove);
            }


            if (!aDiscrete.isEmpty()){
                Discretize disc = new Discretize();
                disc.setAttributeIndices((String) aDiscrete.get(0));
                disc.setBins((Integer) aDiscrete.get(1));
                disc.setFindNumBins(((JCheckBox) aDiscrete.get(2)).isSelected());
                disc.setUseEqualFrequency(aDiscrete.get(3).equals("True"));
                disc.setInputFormat(filt_learn);
                filt_learn = Filter.useFilter(filt_learn, disc);
                disc.setInputFormat(filt_hold);
                filt_hold = Filter.useFilter(filt_hold, disc);
            }


                        Classifier cpyCls[];
View Full Code Here

TOP

Related Classes of weka.filters.unsupervised.attribute.Discretize

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.