Java Code Examples for weka.core.Capabilities#enableAllAttributes()

The following examples show how to use weka.core.Capabilities#enableAllAttributes() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AddValues.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/** 
 * Returns the Capabilities of this filter.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();

  // attributes
  result.enableAllAttributes();
  result.enable(Capability.MISSING_VALUES);
  
  // class
  result.enableAllClasses();
  result.enable(Capability.MISSING_CLASS_VALUES);
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 2
Source File: MakeIndicator.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/** 
 * Returns the Capabilities of this filter.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();

  // attributes
  result.enableAllAttributes();
  result.enable(Capability.MISSING_VALUES);
  
  // class
  result.enableAllClasses();
  result.enable(Capability.MISSING_CLASS_VALUES);
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 3
Source File: NumericToNominal.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/** 
 * Returns the Capabilities of this filter.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();

  // attributes
  result.enableAllAttributes();
  result.enable(Capability.MISSING_VALUES);
  
  // class
  result.enableAllClasses();
  result.enable(Capability.MISSING_CLASS_VALUES);
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 4
Source File: ArffSaver.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Returns the Capabilities of this saver.
 * 
 * @return the capabilities of this object
 * @see Capabilities
 */
@Override
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();

  // attributes
  result.enableAllAttributes();
  result.enable(Capability.MISSING_VALUES);

  // class
  result.enableAllClasses();
  result.enable(Capability.MISSING_CLASS_VALUES);
  result.enable(Capability.NO_CLASS);

  return result;
}
 
Example 5
Source File: Add.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/** 
 * Returns the Capabilities of this filter.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();

  // attributes
  result.enableAllAttributes();
  result.enable(Capability.MISSING_VALUES);
  
  // class
  result.enableAllClasses();
  result.enable(Capability.MISSING_CLASS_VALUES);
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 6
Source File: Resample.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/** 
 * Returns the Capabilities of this filter.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();

  // attributes
  result.enableAllAttributes();
  result.enable(Capability.MISSING_VALUES);
  
  // class
  result.enableAllClasses();
  result.enable(Capability.MISSING_CLASS_VALUES);
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 7
Source File: RemoveWithValues.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/** 
 * Returns the Capabilities of this filter.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();

  // attributes
  result.enableAllAttributes();
  result.enable(Capability.MISSING_VALUES);
  
  // class
  result.enableAllClasses();
  result.enable(Capability.MISSING_CLASS_VALUES);
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 8
Source File: RemoveRange.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/** 
 * Returns the Capabilities of this filter.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();

  // attributes
  result.enableAllAttributes();
  result.enable(Capability.MISSING_VALUES);
  
  // class
  result.enableAllClasses();
  result.enable(Capability.MISSING_CLASS_VALUES);
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 9
Source File: NumericTransform.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/** 
 * Returns the Capabilities of this filter.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();

  // attributes
  result.enableAllAttributes();
  result.enable(Capability.MISSING_VALUES);
  
  // class
  result.enableAllClasses();
  result.enable(Capability.MISSING_CLASS_VALUES);
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 10
Source File: Remove.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/** 
 * Returns the Capabilities of this filter.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();

  // attributes
  result.enableAllAttributes();
  result.enable(Capability.MISSING_VALUES);
  
  // class
  result.enableAllClasses();
  result.enable(Capability.MISSING_CLASS_VALUES);
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 11
Source File: AddNoise.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/** 
 * Returns the Capabilities of this filter.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();

  // attributes
  result.enableAllAttributes();
  result.enable(Capability.MISSING_VALUES);
  
  // class
  result.enableAllClasses();
  result.enable(Capability.MISSING_CLASS_VALUES);
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 12
Source File: RemoveFolds.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/** 
 * Returns the Capabilities of this filter.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();

  // attributes
  result.enableAllAttributes();
  result.enable(Capability.MISSING_VALUES);
  
  // class
  result.enableAllClasses();
  result.enable(Capability.MISSING_CLASS_VALUES);
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 13
Source File: TimeSeriesTranslate.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/** 
 * Returns the Capabilities of this filter.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();

  // attributes
  result.enableAllAttributes();
  result.enable(Capability.MISSING_VALUES);
  
  // class
  result.enableAllClasses();
  result.enable(Capability.MISSING_CLASS_VALUES);
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 14
Source File: MultiInstanceToPropositional.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Returns the capabilities of this multi-instance filter for the
 * relational data (i.e., the bags).
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getMultiInstanceCapabilities() {
  Capabilities result = new Capabilities(this);

  // attributes
  result.enableAllAttributes();
  result.disable(Capability.RELATIONAL_ATTRIBUTES);
  result.enable(Capability.MISSING_VALUES);
  
  // class
  result.enableAllClasses();
  result.enable(Capability.MISSING_CLASS_VALUES);
  result.enable(Capability.NO_CLASS);
  
  // other
  result.setMinimumNumberInstances(0);
  
  return result;
}
 
Example 15
Source File: SpreadSubsample.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/** 
 * Returns the Capabilities of this filter.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();

  // attributes
  result.enableAllAttributes();
  result.enable(Capability.MISSING_VALUES);
  
  // class
  result.enable(Capability.NOMINAL_CLASS);
  
  return result;
}
 
Example 16
Source File: Resample.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/** 
 * Returns the Capabilities of this filter.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();

  // attributes
  result.enableAllAttributes();
  result.enable(Capability.MISSING_VALUES);
  
  // class
  result.enable(Capability.NOMINAL_CLASS);
  
  return result;
}
 
Example 17
Source File: InterquartileRange.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/** 
 * Returns the Capabilities of this filter.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();

  // attributes
  result.enableAllAttributes();
  
  // class
  result.enableAllClasses();
  result.enable(Capability.MISSING_CLASS_VALUES);
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 18
Source File: SerializedInstancesSaver.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/** 
 * Returns the Capabilities of this saver.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();
  
  // attributes
  result.enableAllAttributes();
  result.enable(Capability.MISSING_VALUES);
  
  // class
  result.enableAllClasses();
  result.enable(Capability.MISSING_CLASS_VALUES);
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 19
Source File: XRFFSaver.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/** 
 * Returns the Capabilities of this saver.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();
  
  // attributes
  result.enableAllAttributes();
  result.enable(Capability.MISSING_VALUES);
  
  // class
  result.enableAllClasses();
  result.enable(Capability.MISSING_CLASS_VALUES);
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 20
Source File: LabelWordVectors.java    From AffectiveTweets with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Capabilities getCapabilities() {

	Capabilities result = new Capabilities(this);
	result.disableAll();



	// attributes
	result.enableAllAttributes();
	result.enable(Capability.MISSING_VALUES);

	// class
	result.enableAllClasses();
	result.enable(Capability.MISSING_CLASS_VALUES);
	result.enable(Capability.NO_CLASS);

	result.setMinimumNumberInstances(0);

	return result;
}