
weka.filters.MakePreconstructedFilter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of distributedWekaBase Show documentation
Show all versions of distributedWekaBase Show documentation
This package provides generic configuration class and distributed map/reduce style tasks for Weka
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
/*
* MakePreconstructedFilter.java
* Copyright (C) 2013 University of Waikato, Hamilton, New Zealand
*
*/
package weka.filters;
import java.io.Serializable;
import java.util.Enumeration;
import java.util.Vector;
import weka.core.Capabilities;
import weka.core.Instance;
import weka.core.Instances;
import weka.core.Option;
import weka.core.OptionHandler;
import weka.core.Utils;
import weka.gui.beans.KFIgnore;
import distributed.core.DistributedJobConfig;
/**
* Class for wrapping a standard filter and making it a PreconstructedFilter.
*
* @author Mark Hall (mhall{[at]}pentaho{[dot]}com)
* @version $Revision: 11101 $
*/
@KFIgnore
public class MakePreconstructedFilter extends Filter implements
PreconstructedFilter, StreamableFilter, Serializable {
/** For serialization */
private static final long serialVersionUID = -6057003058954267357L;
/** The filter to delegate to */
protected Filter m_delegate;
/** Whether this preconstructed filter has been reset */
protected boolean m_isReset = true;
/** True if we've done a check for string atts in the output format */
protected boolean m_stringsChecked;
/** True if the output format contains string atts */
protected boolean m_hasStringAtts;
public MakePreconstructedFilter() {
super();
}
public MakePreconstructedFilter(Filter base) {
setBaseFilter(base);
}
/**
* List the options for this filter
*
* @return an enumeration of options
*/
public Enumeration listOptions() {
Vector
© 2015 - 2025 Weber Informatics LLC | Privacy Policy