hex.gbm
Class DTree.TreeModel.TreeVisitor<T extends java.lang.Exception>

java.lang.Object
  extended by hex.gbm.DTree.TreeModel.TreeVisitor<T>
Enclosing class:
DTree.TreeModel

public abstract static class DTree.TreeModel.TreeVisitor<T extends java.lang.Exception>
extends java.lang.Object

Abstract visitor class for serialized trees.


Field Summary
protected  DTree.TreeModel.CompressedTree _ct
           
protected  int _depth
           
protected  DTree.TreeModel _tm
           
 
Constructor Summary
DTree.TreeModel.TreeVisitor(DTree.TreeModel tm, DTree.TreeModel.CompressedTree ct)
           
 
Method Summary
protected  void leaf(float pred)
           
protected  void mid(int col, float fcmp, boolean equal)
           
protected  void post(int col, float fcmp, boolean equal)
           
protected  void pre(int col, float fcmp, boolean equal)
           
 void visit()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_tm

protected final DTree.TreeModel _tm

_ct

protected final DTree.TreeModel.CompressedTree _ct

_depth

protected int _depth
Constructor Detail

DTree.TreeModel.TreeVisitor

public DTree.TreeModel.TreeVisitor(DTree.TreeModel tm,
                                   DTree.TreeModel.CompressedTree ct)
Method Detail

pre

protected void pre(int col,
                   float fcmp,
                   boolean equal)
            throws T extends java.lang.Exception
Throws:
T extends java.lang.Exception

mid

protected void mid(int col,
                   float fcmp,
                   boolean equal)
            throws T extends java.lang.Exception
Throws:
T extends java.lang.Exception

post

protected void post(int col,
                    float fcmp,
                    boolean equal)
             throws T extends java.lang.Exception
Throws:
T extends java.lang.Exception

leaf

protected void leaf(float pred)
             throws T extends java.lang.Exception
Throws:
T extends java.lang.Exception

visit

public final void visit()
                 throws T extends java.lang.Exception
Throws:
T extends java.lang.Exception