Example usage for weka.core Capabilities or

List of usage examples for weka.core Capabilities or

Introduction

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

Prototype

public void or(Capabilities c) 

Source Link

Document

performs an OR conjunction with the capabilities of the given Capabilities object and updates itself

Usage

From source file:br.com.ufu.lsi.rebfnetwork.RBFNetwork.java

License:Open Source License

/**
 * Returns default capabilities of the classifier, i.e.,  and "or" of
 * Logistic and LinearRegression.//from   w  ww  .j  a v  a2  s. c o  m
 *
 * @return      the capabilities of this classifier
 * @see         Logistic
 * @see         LinearRegression
 */
public Capabilities getCapabilities() {
    Capabilities result = new Logistic().getCapabilities();
    result.or(new LinearRegression().getCapabilities());
    Capabilities classes = result.getClassCapabilities();
    result.and(new SimpleKMeans().getCapabilities());
    result.or(classes);
    return result;
}