Example usage for weka.core Capabilities enableAllAttributeDependencies

List of usage examples for weka.core Capabilities enableAllAttributeDependencies

Introduction

In this page you can find the example usage for weka.core Capabilities enableAllAttributeDependencies.

Prototype

public void enableAllAttributeDependencies() 

Source Link

Document

enables all attribute type dependencies

Usage

From source file:SMO.java

License:Open Source License

/**
 * Returns default capabilities of the classifier.
 *
 * @return      the capabilities of this classifier
 *///from   w  w  w .j a v  a  2  s  . c o m
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;
}