edu.washington.cs.supple.render.utility
Class MaxMarginSolver

java.lang.Object
  extended byedu.washington.cs.supple.render.utility.MaxMarginSolver
All Implemented Interfaces:
FactoredCostSolver

public class MaxMarginSolver
extends java.lang.Object
implements FactoredCostSolver

Author:
kgajos

Field Summary
protected  java.lang.String[] colNames
           
protected  int curPriorSampleSize
           
protected  java.util.Vector factors
           
protected  int maxPriorSampleSize
           
protected  double slackPenalty
           
 
Constructor Summary
MaxMarginSolver()
           
 
Method Summary
protected  Problem buildProblem(java.util.Vector constraints, FactoredCostFunctionState prior)
           
protected  double[] solve(java.util.Vector constraints, FactoredCostFunctionState prior)
           
 void updateCostFunctionWeights(FactoredCostFunction cf, FactoredCostConstraintGenerator constraintGenerator)
           
 void updateCostFunctionWeights(FactoredCostFunction cf, FactoredCostConstraintGenerator constraintGenerator, FactoredCostFunctionState prior)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factors

protected java.util.Vector factors

slackPenalty

protected double slackPenalty

colNames

protected java.lang.String[] colNames

maxPriorSampleSize

protected int maxPriorSampleSize

curPriorSampleSize

protected int curPriorSampleSize
Constructor Detail

MaxMarginSolver

public MaxMarginSolver()
Method Detail

updateCostFunctionWeights

public void updateCostFunctionWeights(FactoredCostFunction cf,
                                      FactoredCostConstraintGenerator constraintGenerator)
Specified by:
updateCostFunctionWeights in interface FactoredCostSolver

updateCostFunctionWeights

public void updateCostFunctionWeights(FactoredCostFunction cf,
                                      FactoredCostConstraintGenerator constraintGenerator,
                                      FactoredCostFunctionState prior)
Specified by:
updateCostFunctionWeights in interface FactoredCostSolver

solve

protected double[] solve(java.util.Vector constraints,
                         FactoredCostFunctionState prior)

buildProblem

protected Problem buildProblem(java.util.Vector constraints,
                               FactoredCostFunctionState prior)