|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tuffy.main.Infer tuffy.learn.Learner tuffy.learn.NaiveDNLearner
@Deprecated public class NaiveDNLearner
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...
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 |
---|
public java.util.HashMap<java.lang.String,java.lang.Double> oldG
public java.util.HashMap<java.lang.String,java.lang.Double> oldD
public java.util.HashMap<java.lang.String,java.lang.Double> oldDW
public double oldDHD
public double oldDG
public double lambda
public double alpha
public int nCall
Constructor Detail |
---|
public NaiveDNLearner()
Method Detail |
---|
public void loadingTrainingData(MRF _mcsat)
loadingTrainingData
in class Learner
_mcsat
- The MCSAT object to be filled in.public boolean updateWeight(MRF mcsat)
Learner.currentWeight
using Diagonal
Newton method.
updateWeight
in class Learner
mcsat
- MCSAT instance after this iteration.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |