Example usage for weka.classifiers.trees.m5 RuleNode rightNode

List of usage examples for weka.classifiers.trees.m5 RuleNode rightNode

Introduction

In this page you can find the example usage for weka.classifiers.trees.m5 RuleNode rightNode.

Prototype

public RuleNode rightNode() 

Source Link

Document

Get the right child of this node

Usage

From source file:cn.ict.zyq.bestConf.COMT2.COMT2.java

License:Open Source License

private static Instances getSiblings(M5P modelTree, Instance ins) {
    RuleNode node = modelTree.getM5RootNode();

    while (!node.isLeaf()) {
        if (ins.value(node.splitAtt()) <= node.splitVal()) {
            node = node.leftNode();//from   w ww .ja  va 2s.c  om
        } else {
            node = node.rightNode();
        }
    }

    return node.zyqGetTrainingSet();
}