public void enable(Capability c){
  if (doNotCheckCapabilities()) {
    return;
  }
  if (c == Capability.NOMINAL_ATTRIBUTES) {
    enable(Capability.BINARY_ATTRIBUTES);
  }
 else   if (c == Capability.BINARY_ATTRIBUTES) {
    enable(Capability.UNARY_ATTRIBUTES);
  }
 else   if (c == Capability.UNARY_ATTRIBUTES) {
    enable(Capability.EMPTY_NOMINAL_ATTRIBUTES);
  }
 else   if (c == Capability.NOMINAL_CLASS) {
    enable(Capability.BINARY_CLASS);
  }
  m_Capabilities.add(c);
}

public void enable ( Capability c ) { if ( doNotCheckCapabilities ( ) ) { return ; } if ( c == Capability . NOMINAL_ATTRIBUTES ) { enable ( Capability . BINARY_ATTRIBUTES ) ; } else if ( c == Capability . BINARY_ATTRIBUTES ) { enable ( Capability . UNARY_ATTRIBUTES ) ; } else if ( c == Capability . UNARY_ATTRIBUTES ) { enable ( Capability . EMPTY_NOMINAL_ATTRIBUTES ) ; } else if ( c == Capability . NOMINAL_CLASS ) { enable ( Capability . BINARY_CLASS ) ; } m_Capabilities . add ( c ) ; }
enables the given capability . enabling nominal_attributes also enables binary_attributes , unary_attributes and empty_nominal_attributes . enabling binary_attributes also enables unary_attributes and empty_nominal_attributes . enabling unary_attributes also enables empty_nominal_attributes . but nominal_class only enables binary_class , since normal schemes in weka don ' t work with datasets that have only 1 class label ( or none ) .
