tuffy.learn
Class NaiveDNLearner

java.lang.Object
  extended by tuffy.main.Infer
      extended by tuffy.learn.Learner
          extended by tuffy.learn.NaiveDNLearner

Deprecated.

@Deprecated
public class NaiveDNLearner
extends Learner

DO NOT USE THIS CLASS! USE DNLearner. Learner instance using diagonal Newton with stable step size = 0.01. Note, this is a very simple diagonal Newton learner. When use it for real circumstance, please check it carefully...

Author:
Ce Zhang

Field Summary
 double alpha
          Deprecated.  
 double lambda
          Deprecated.  
 int nCall
          Deprecated.  
 java.util.HashMap<java.lang.String,java.lang.Double> oldD
          Deprecated.  
 double oldDG
          Deprecated.  
 double oldDHD
          Deprecated.  
 java.util.HashMap<java.lang.String,java.lang.Double> oldDW
          Deprecated.  
 java.util.HashMap<java.lang.String,java.lang.Double> oldG
          Deprecated.  
 
Fields inherited from class tuffy.learn.Learner
_oldWeight, backtrackCount_, backtracked, currentWeight, finalWeight, isHardMappings, negativeWeightSatisfication, negativeWeightViolation, odds, oriWeight, positiveWeightSatisfication, positiveWeightViolation, trainingSatisification, trainingViolation
 
Fields inherited from class tuffy.main.Infer
db, dmover, grounding, mln, options
 
Constructor Summary
NaiveDNLearner()
          Deprecated.  
 
Method Summary
 void loadingTrainingData(MRF _mcsat)
          Deprecated. Loading training data's truth value into MRF.
 boolean updateWeight(MRF mcsat)
          Deprecated. Updating Learner.currentWeight using Diagonal Newton method.
 
Methods inherited from class tuffy.learn.Learner
calcCurrentTrainingViolation, dumpAnswers, fillInCurrentWeight, run
 
Methods inherited from class tuffy.main.Infer
cleanUp, ground, loadMLN, setUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oldG

public java.util.HashMap<java.lang.String,java.lang.Double> oldG
Deprecated. 

oldD

public java.util.HashMap<java.lang.String,java.lang.Double> oldD
Deprecated. 

oldDW

public java.util.HashMap<java.lang.String,java.lang.Double> oldDW
Deprecated. 

oldDHD

public double oldDHD
Deprecated. 

oldDG

public double oldDG
Deprecated. 

lambda

public double lambda
Deprecated. 

alpha

public double alpha
Deprecated. 

nCall

public int nCall
Deprecated. 
Constructor Detail

NaiveDNLearner

public NaiveDNLearner()
Deprecated. 
Method Detail

loadingTrainingData

public void loadingTrainingData(MRF _mcsat)
Deprecated. 
Loading training data's truth value into MRF.

Specified by:
loadingTrainingData in class Learner
Parameters:
_mcsat - The MCSAT object to be filled in.

updateWeight

public boolean updateWeight(MRF mcsat)
Deprecated. 
Updating Learner.currentWeight using Diagonal Newton method.

Specified by:
updateWeight in class Learner
Parameters:
mcsat - MCSAT instance after this iteration.
Returns:
Whether terminate.