tmpLearn
Class BetterDNLearner
java.lang.Object
infer.Infer
tmpLearn.Learner
tmpLearn.BetterDNLearner
public class BetterDNLearner
- extends Learner
NOT ROBUST YET.
DO NOT USE IT CURRENTLY!
Field Summary |
double |
alpha
|
java.util.HashMap<java.lang.String,java.lang.Double> |
currentD
|
java.util.HashMap<java.lang.String,java.lang.Double> |
currentGradient
|
double |
lambda
|
int |
nBoot
|
int |
nCall
|
java.util.HashMap<java.lang.String,java.lang.Double> |
oldD
|
double |
oldDG
|
double |
oldDHD
|
java.util.HashMap<java.lang.String,java.lang.Double> |
oldDW
|
java.util.HashMap<java.lang.String,java.lang.Double> |
oldG
|
java.util.HashMap<java.lang.String,java.lang.Double> |
oldWeight
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
alpha
public double alpha
currentD
public java.util.HashMap<java.lang.String,java.lang.Double> currentD
currentGradient
public java.util.HashMap<java.lang.String,java.lang.Double> currentGradient
lambda
public double lambda
nBoot
public int nBoot
nCall
public int nCall
oldD
public java.util.HashMap<java.lang.String,java.lang.Double> oldD
oldDG
public double oldDG
oldDHD
public double oldDHD
oldDW
public java.util.HashMap<java.lang.String,java.lang.Double> oldDW
oldG
public java.util.HashMap<java.lang.String,java.lang.Double> oldG
oldWeight
public java.util.HashMap<java.lang.String,java.lang.Double> oldWeight
BetterDNLearner
public BetterDNLearner()
getGradientAndD
public void getGradientAndD(MCSAT mcsat)
loadingTrainingData
public void loadingTrainingData(MCSAT _mcsat)
- 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(MCSAT mcsat)
- Updating
Learner.currentWeight
using Diagonal
Newton method.
- Specified by:
updateWeight
in class Learner
- Parameters:
mcsat
- MCSAT instance after this iteration.
- Returns:
- Whether terminate.