edu.cmu.minorthird.classify.sequential
Class StackedSequenceLearner.StackingParams

java.lang.Object
  extended by edu.cmu.minorthird.classify.sequential.StackedSequenceLearner.StackingParams
Enclosing class:
StackedSequenceLearner

public static class StackedSequenceLearner.StackingParams
extends java.lang.Object

Bundle of parameters for the StackedSequenceLearner.


Field Summary
 int futureSize
           
 int historySize
           
 Splitter<Example[]> splitter
           
 int stackingDepth
           
 boolean useConfidence
           
 boolean useLogistic
           
 boolean useTargetPrediction
           
 
Constructor Summary
StackedSequenceLearner.StackingParams()
           
 
Method Summary
 int getCrossValSplits()
           
 int getFutureSize()
          Number of instances after the current target for which the predicted class will be used as a feature.
 int getHistorySize()
          Number of instances before the current target for which the predicted class will be used as a feature.
 int getStackingDepth()
          Number of iterations of stacking to use
 boolean getUseConfidences()
          If true, use confidence in class predictions as weight for that feature.
 boolean getUseLogisticOnConfidences()
          If true, adjust all class confidences by passing them thru a logistic function
 boolean getUseTargetPrediction()
          If true, adjust all class confidences by passing them thru a logistic function
 void setCrossValSplits(int newCrossValSplits)
           
 void setFutureSize(int newFutureSize)
           
 void setHistorySize(int newHistorySize)
           
 void setStackingDepth(int newStackingDepth)
           
 void setUseConfidences(boolean flag)
           
 void setUseLogisticOnConfidences(boolean flag)
           
 void setUseTargetPrediction(boolean flag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

historySize

public int historySize

futureSize

public int futureSize

stackingDepth

public int stackingDepth

useLogistic

public boolean useLogistic

useTargetPrediction

public boolean useTargetPrediction

useConfidence

public boolean useConfidence

splitter

public Splitter<Example[]> splitter
Constructor Detail

StackedSequenceLearner.StackingParams

public StackedSequenceLearner.StackingParams()
Method Detail

getHistorySize

public int getHistorySize()
Number of instances before the current target for which the predicted class will be used as a feature.


setHistorySize

public void setHistorySize(int newHistorySize)

getFutureSize

public int getFutureSize()
Number of instances after the current target for which the predicted class will be used as a feature.


setFutureSize

public void setFutureSize(int newFutureSize)

getUseLogisticOnConfidences

public boolean getUseLogisticOnConfidences()
If true, adjust all class confidences by passing them thru a logistic function


setUseLogisticOnConfidences

public void setUseLogisticOnConfidences(boolean flag)

getUseConfidences

public boolean getUseConfidences()
If true, use confidence in class predictions as weight for that feature.


setUseConfidences

public void setUseConfidences(boolean flag)

getUseTargetPrediction

public boolean getUseTargetPrediction()
If true, adjust all class confidences by passing them thru a logistic function


setUseTargetPrediction

public void setUseTargetPrediction(boolean flag)

getStackingDepth

public int getStackingDepth()
Number of iterations of stacking to use


setStackingDepth

public void setStackingDepth(int newStackingDepth)

getCrossValSplits

public int getCrossValSplits()

setCrossValSplits

public void setCrossValSplits(int newCrossValSplits)