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

The following examples show how to use weka.core.Capabilities#disableAllClasses() . 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: MIOptimalBall.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Returns the capabilities of this multi-instance classifier for the
 * relational data.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getMultiInstanceCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();
  
  // attributes
  result.enable(Capability.NOMINAL_ATTRIBUTES);
  result.enable(Capability.NUMERIC_ATTRIBUTES);
  result.enable(Capability.DATE_ATTRIBUTES);
  result.enable(Capability.MISSING_VALUES);

  // class
  result.disableAllClasses();
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 2
Source File: MDD.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Returns the capabilities of this multi-instance classifier for the
 * relational data.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getMultiInstanceCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();
  
  // attributes
  result.enable(Capability.NOMINAL_ATTRIBUTES);
  result.enable(Capability.NUMERIC_ATTRIBUTES);
  result.enable(Capability.DATE_ATTRIBUTES);
  result.enable(Capability.MISSING_VALUES);

  // class
  result.disableAllClasses();
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 3
Source File: MIDD.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Returns the capabilities of this multi-instance classifier for the
 * relational data.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getMultiInstanceCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();
  
  // attributes
  result.enable(Capability.NOMINAL_ATTRIBUTES);
  result.enable(Capability.NUMERIC_ATTRIBUTES);
  result.enable(Capability.DATE_ATTRIBUTES);
  result.enable(Capability.MISSING_VALUES);

  // class
  result.disableAllClasses();
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 4
Source File: MISVM.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Returns default capabilities of the classifier.
 *
 * @return      the capabilities of this classifier
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();

  // attributes
  result.enable(Capability.NOMINAL_ATTRIBUTES);
  result.enable(Capability.RELATIONAL_ATTRIBUTES);
  result.enable(Capability.MISSING_VALUES);

  // class
  result.disableAllClasses();
  result.disableAllClassDependencies();
  result.enable(Capability.BINARY_CLASS);
  result.enable(Capability.MISSING_CLASS_VALUES);
  
  // other
  result.enable(Capability.ONLY_MULTIINSTANCE);
  
  return result;
}
 
Example 5
Source File: MIEMDD.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Returns the capabilities of this multi-instance classifier for the
 * relational data.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getMultiInstanceCapabilities() {
  Capabilities result = super.getCapabilities();
  result.disableAll();
  
  // attributes
  result.enable(Capability.NOMINAL_ATTRIBUTES);
  result.enable(Capability.NUMERIC_ATTRIBUTES);
  result.enable(Capability.DATE_ATTRIBUTES);
  result.enable(Capability.MISSING_VALUES);

  // class
  result.disableAllClasses();
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 6
Source File: MIBoost.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Returns default capabilities of the classifier.
 *
 * @return      the capabilities of this classifier
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();

  // attributes
  result.enable(Capability.NOMINAL_ATTRIBUTES);
  result.enable(Capability.RELATIONAL_ATTRIBUTES);
  result.enable(Capability.MISSING_VALUES);

  // class
  result.disableAllClasses();
  result.disableAllClassDependencies();
  if (super.getCapabilities().handles(Capability.BINARY_CLASS))
    result.enable(Capability.BINARY_CLASS);
  result.enable(Capability.MISSING_CLASS_VALUES);
  
  // other
  result.enable(Capability.ONLY_MULTIINSTANCE);
  
  return result;
}
 
Example 7
Source File: SMO.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Returns default capabilities of the classifier.
 *
 * @return      the capabilities of this classifier
 */
public Capabilities getCapabilities() {
  Capabilities result = getKernel().getCapabilities();
  result.setOwner(this);
  
  // attribute
  result.enableAllAttributeDependencies();
  // with NominalToBinary we can also handle nominal attributes, but only
  // if the kernel can handle numeric attributes
  if (result.handles(Capability.NUMERIC_ATTRIBUTES))
    result.enable(Capability.NOMINAL_ATTRIBUTES);
  result.enable(Capability.MISSING_VALUES);
  
  // class
  result.disableAllClasses();
  result.disableAllClassDependencies();
  result.enable(Capability.NOMINAL_CLASS);
  result.enable(Capability.MISSING_CLASS_VALUES);
  
  return result;
}
 
Example 8
Source File: LogitBoost.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns default capabilities of the classifier.
 *
 * @return      the capabilities of this classifier
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();

  // class
  result.disableAllClasses();
  result.disableAllClassDependencies();
  result.enable(Capability.NOMINAL_CLASS);
  
  return result;
}
 
Example 9
Source File: MIBoost.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the capabilities of this multi-instance classifier for the
 * relational data.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getMultiInstanceCapabilities() {
  Capabilities result = super.getCapabilities();
  
  // class
  result.disableAllClasses();
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 10
Source File: MIRBFKernel.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the capabilities of this multi-instance kernel for the
 * relational data.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getMultiInstanceCapabilities() {
  Capabilities result = super.getCapabilities();
  
  // class
  result.disableAllClasses();
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 11
Source File: MIPolyKernel.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the capabilities of this multi-instance kernel for the
 * relational data.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getMultiInstanceCapabilities() {
  Capabilities result = super.getCapabilities();
  
  // class
  result.disableAllClasses();
  result.enable(Capability.NO_CLASS);
  
  return result;
}
 
Example 12
Source File: ClassificationViaRegression.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns default capabilities of the classifier.
 *
 * @return      the capabilities of this classifier
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();

  // class
  result.disableAllClasses();
  result.disableAllClassDependencies();
  result.enable(Capability.NOMINAL_CLASS);
  
  return result;
}
 
Example 13
Source File: CostSensitiveClassifier.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns default capabilities of the classifier.
 *
 * @return      the capabilities of this classifier
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();

  // class
  result.disableAllClasses();
  result.disableAllClassDependencies();
  result.enable(Capability.NOMINAL_CLASS);
  
  return result;
}
 
Example 14
Source File: MetaCost.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns default capabilities of the classifier.
 *
 * @return      the capabilities of this classifier
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();

  // class
  result.disableAllClasses();
  result.disableAllClassDependencies();
  result.enable(Capability.NOMINAL_CLASS);
  
  return result;
}
 
Example 15
Source File: MultiClassClassifier.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns default capabilities of the classifier.
 *
 * @return      the capabilities of this classifier
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();

  // class
  result.disableAllClasses();
  result.disableAllClassDependencies();
  result.enable(Capability.NOMINAL_CLASS);
  
  return result;
}
 
Example 16
Source File: ClassificationViaClustering.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns default capabilities of the classifier.
 *
 * @return		the capabilities of this classifier
 */
public Capabilities getCapabilities() {
  Capabilities	result;
  
  result = m_Clusterer.getCapabilities();
  
  // class
  result.disableAllClasses();
  result.disable(Capability.NO_CLASS);
  result.enable(Capability.NOMINAL_CLASS);
  
  return result;
}
 
Example 17
Source File: OrdinalClassClassifier.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns default capabilities of the classifier.
 *
 * @return      the capabilities of this classifier
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();

  // class
  result.disableAllClasses();
  result.disableAllClassDependencies();
  result.enable(Capability.NOMINAL_CLASS);
  
  return result;
}
 
Example 18
Source File: Decorate.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns default capabilities of the classifier.
 *
 * @return      the capabilities of this classifier
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();

  // class
  result.disableAllClasses();
  result.disableAllClassDependencies();
  result.enable(Capability.NOMINAL_CLASS);

  // instances
  result.setMinimumNumberInstances(m_DesiredSize);

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

  // class
  result.disableAllClasses();
  result.enable(Capability.NOMINAL_CLASS);
  result.enable(Capability.MISSING_CLASS_VALUES);

  // instances
  result.setMinimumNumberInstances(1);
  
  return result;
}
 
Example 20
Source File: ClassBalancedND.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns default capabilities of the classifier.
 *
 * @return      the capabilities of this classifier
 */
public Capabilities getCapabilities() {
  Capabilities result = super.getCapabilities();

  // class
  result.disableAllClasses();
  result.enable(Capability.NOMINAL_CLASS);
  result.enable(Capability.MISSING_CLASS_VALUES);

  // instances
  result.setMinimumNumberInstances(1);
  
  return result;
}