cc.mallet.grmm.learning
Class PseudolikelihoodACRFTrainer

java.lang.Object
  extended by cc.mallet.grmm.learning.DefaultAcrfTrainer
      extended by cc.mallet.grmm.learning.PseudolikelihoodACRFTrainer
All Implemented Interfaces:
ACRFTrainer

public class PseudolikelihoodACRFTrainer
extends DefaultAcrfTrainer

Created: Mar 15, 2005

Version:
$Id: PseudolikelihoodACRFTrainer.java,v 1.1 2007/10/22 21:37:40 mccallum Exp $
Author:
Nested Class Summary
 class PseudolikelihoodACRFTrainer.Maxable
           
 
Nested classes/interfaces inherited from class cc.mallet.grmm.learning.DefaultAcrfTrainer
DefaultAcrfTrainer.FileEvaluator, DefaultAcrfTrainer.LogEvaluator, DefaultAcrfTrainer.TestResults
 
Field Summary
static int BY_EDGE
          Use per-edge structured pseudolikelihood.
static int BY_VARIABLE
          Use per-variable pseudolikelihood.
 
Constructor Summary
PseudolikelihoodACRFTrainer()
           
 
Method Summary
 Optimizable.ByGradientValue createOptimizable(ACRF acrf, InstanceList training)
           
 int getStructureType()
           
 void setStructureType(int structureType)
           
 
Methods inherited from class cc.mallet.grmm.learning.DefaultAcrfTrainer
callEvaluator, getMaxer, getRandom, incrementalTrain, incrementalTrain, isRethrowExceptions, setMaxer, setOutputPrefix, setRethrowExceptions, someUnsupportedTrain, test, test, train, train, train, train, train, train, train
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BY_VARIABLE

public static final int BY_VARIABLE
Use per-variable pseudolikelihood. This is the classical version of Besag.

See Also:
Constant Field Values

BY_EDGE

public static final int BY_EDGE
Use per-edge structured pseudolikelihood.

See Also:
Constant Field Values
Constructor Detail

PseudolikelihoodACRFTrainer

public PseudolikelihoodACRFTrainer()
Method Detail

getStructureType

public int getStructureType()

setStructureType

public void setStructureType(int structureType)

createOptimizable

public Optimizable.ByGradientValue createOptimizable(ACRF acrf,
                                                     InstanceList training)
Overrides:
createOptimizable in class DefaultAcrfTrainer