netkit.classifiers
Class DataSplit

java.lang.Object
  extended by netkit.classifiers.DataSplit

public class DataSplit
extends java.lang.Object


Constructor Summary
DataSplit(DataView view, Node[] test, Node[] train)
           
 
Method Summary
 int applyLabels(int depth)
           
 double[] getClassDistribution()
           
 double[] getPrior()
           
 Node[] getTestSet()
           
 int getTestSetSize()
           
 Node[] getTrainSet()
           
 int getTrainSetSize()
           
 Node[] getUnknownSet()
           
 int getUnknownSetSize()
           
 DataView getView()
           
 boolean hasTruth()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataSplit

public DataSplit(DataView view,
                 Node[] test,
                 Node[] train)
Method Detail

applyLabels

public int applyLabels(int depth)

getView

public DataView getView()

getClassDistribution

public double[] getClassDistribution()

getPrior

public double[] getPrior()

hasTruth

public boolean hasTruth()

getTrainSet

public Node[] getTrainSet()

getTestSet

public Node[] getTestSet()

getUnknownSet

public Node[] getUnknownSet()

getTrainSetSize

public int getTrainSetSize()

getTestSetSize

public int getTestSetSize()

getUnknownSetSize

public int getUnknownSetSize()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object