类 GaussianPriorImpl
java.lang.Object
weka.classifiers.bayes.blr.Prior
weka.classifiers.bayes.blr.GaussianPriorImpl
- 所有已实现的接口:
Serializable
,RevisionHandler
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.
- 版本:
- $Revision: 1.2 $
- 作者:
- Navendu Garg(gargnav@iit.edu)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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.Returns the revision string.double
Update function specific to Laplace Prior.从类继承的方法 weka.classifiers.bayes.blr.Prior
computelogLikelihood, getLoglikelihood, getLogPosterior, getPenalty
-
构造器详细资料
-
GaussianPriorImpl
public GaussianPriorImpl()
-
-
方法详细资料
-
update
public double update(int j, Instances instances, double beta, double hyperparameter, double[] r, double deltaV) Update function specific to Laplace Prior. -
computeLoglikelihood
This method calls the log-likelihood implemented in the Prior abstract class.- 参数:
betas
-instances
-
-
computePenalty
public void computePenalty(double[] betas, double[] hyperparameters) This function computes the penalty term specific to Gaussian distribution.- 覆盖:
computePenalty
在类中Prior
- 参数:
betas
-hyperparameters
-
-
getRevision
Returns the revision string.- 返回:
- the revision
-