|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.bayes.blr.Prior
weka.classifiers.bayes.blr.GaussianPriorImpl
public class GaussianPriorImpl
Implementation of the Gaussian Prior update function based on CLG Algorithm with a certain Trust Region Update. The values are updated in the BayesianLogisticRegressionV variables used by the algorithm.
Constructor Summary | |
---|---|
GaussianPriorImpl()
|
Method Summary | |
---|---|
void |
computeLoglikelihood(double[] betas,
Instances instances)
This method calls the log-likelihood implemented in the Prior abstract class. |
void |
computePenalty(double[] betas,
double[] hyperparameters)
This function computes the penalty term specific to Gaussian distribution. |
java.lang.String |
getRevision()
Returns the revision string. |
double |
update(int j,
Instances instances,
double beta,
double hyperparameter,
double[] r,
double deltaV)
Update function specific to Laplace Prior. |
Methods inherited from class weka.classifiers.bayes.blr.Prior |
---|
computelogLikelihood, getLoglikelihood, getLogPosterior, getPenalty |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GaussianPriorImpl()
Method Detail |
---|
public double update(int j, Instances instances, double beta, double hyperparameter, double[] r, double deltaV)
update
in class Prior
public void computeLoglikelihood(double[] betas, Instances instances)
betas
- instances
- public void computePenalty(double[] betas, double[] hyperparameters)
computePenalty
in class Prior
betas
- hyperparameters
- public java.lang.String getRevision()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |