Package weka.filters

Examples of weka.filters.MultiFilter


  /**
   * Default constructor.
   */
  public FilteredAssociator() {
    m_Associator = new Apriori();
    m_Filter     = new MultiFilter();
    ((MultiFilter) m_Filter).setFilters(new Filter[]{
  new weka.filters.unsupervised.attribute.ReplaceMissingValues()});
    m_ClassIndex = -1;
  }
View Full Code Here


   * default constructor
   */
  public Wavelet() {
    super();
   
    m_Filter = new MultiFilter();
    ((MultiFilter) m_Filter).setFilters(
  new Filter[]{
      new weka.filters.unsupervised.attribute.ReplaceMissingValues(),
      new weka.filters.unsupervised.attribute.Normalize()
      });
View Full Code Here

      tmpStr        = tmpOptions[0];
      tmpOptions[0] = "";
      setFilter((Filter) Utils.forName(Filter.class, tmpStr, tmpOptions));
    }
    else {
      filter = new MultiFilter();
      ((MultiFilter) filter).setFilters(
    new Filter[]{
        new weka.filters.unsupervised.attribute.ReplaceMissingValues(),
        new weka.filters.unsupervised.attribute.Normalize()
        });
View Full Code Here

  /**
   * Default constructor.
   */
  public FilteredAssociator() {
    m_Associator = new Apriori();
    m_Filter     = new MultiFilter();
    ((MultiFilter) m_Filter).setFilters(new Filter[]{
  new weka.filters.unsupervised.attribute.ReplaceMissingValues()});
    m_ClassIndex = -1;
  }
View Full Code Here

   * default constructor
   */
  public Wavelet() {
    super();
   
    m_Filter = new MultiFilter();
    ((MultiFilter) m_Filter).setFilters(
  new Filter[]{
      new weka.filters.unsupervised.attribute.ReplaceMissingValues(),
      new weka.filters.unsupervised.attribute.Normalize()
      });
View Full Code Here

      tmpStr        = tmpOptions[0];
      tmpOptions[0] = "";
      setFilter((Filter) Utils.forName(Filter.class, tmpStr, tmpOptions));
    }
    else {
      filter = new MultiFilter();
      ((MultiFilter) filter).setFilters(
    new Filter[]{
        new weka.filters.unsupervised.attribute.ReplaceMissingValues(),
        new weka.filters.unsupervised.attribute.Normalize()
        });
View Full Code Here

    public void removeNameFilter(String[] names) throws Exception {
        if (_logger.isDebugEnabled()) {
            _logger.debug("Applying remove type filter");
        }
        // Might employ filtered classifier for production
        MultiFilter mf = new MultiFilter();
        String[] options = new String[names.length * 2];
        for (int i = 0; i < options.length; i++) {
            if (i % 2 == 0) {
                options[i] = "-F";
            } else {
                options[i] = "weka.filters.unsupervised.attribute.Remove -R " + _attributeMap.get(names[i / 2]);
            }
        }
        mf.setOptions(options);
        mf.setInputFormat(_instances);
        _instances = Filter.useFilter(_instances, mf);
    }
View Full Code Here

    public void removeTypeFilter(String[] types) throws Exception {
        if (_logger.isDebugEnabled()) {
            _logger.debug("Applying remove type filter");
        }
        // Might employ filtered classifier for production
        MultiFilter mf = new MultiFilter();
        String[] options = new String[types.length * 2];
        for (int i = 0; i < options.length; i++) {
            if (i % 2 == 0) {
                options[i] = "-F";
            } else {
                options[i] = "weka.filters.unsupervised.attribute.RemoveType -T " + types[i / 2];
            }
        }
        mf.setOptions(options);
        mf.setInputFormat(_instances);
        _instances = Filter.useFilter(_instances, mf);
    }
View Full Code Here

  /**
   * Default constructor.
   */
  public FilteredAssociator() {
    m_Associator = new Apriori();
    m_Filter     = new MultiFilter();
    ((MultiFilter) m_Filter).setFilters(new Filter[]{
  new weka.filters.unsupervised.attribute.ReplaceMissingValues()});
    m_ClassIndex = -1;
  }
View Full Code Here

TOP

Related Classes of weka.filters.MultiFilter

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.