类 LaplacePriorImpl
java.lang.Object
weka.classifiers.bayes.blr.Prior
weka.classifiers.bayes.blr.LaplacePriorImpl
- 所有已实现的接口:
Serializable
,RevisionHandler
Implementation of the Gaussian Prior update function based on modified
CLG Algorithm (CLG-Lasso) with a certain Trust Region Update based
on Laplace Priors.
- 版本:
- $Revision: 1.2 $
- 作者:
- Navendu Garg(gargnav@iit.edu)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
computeLogLikelihood
(double[] betas, Instances instances) Computes the log-likelihood values using the implementation in the Prior class.void
computePenalty
(double[] betas, double[] hyperparameters) This function computes the penalty term specific to Laplacian distribution.Returns the revision string.double
laplaceUpdate
(int j, double sign) This is the CLG-lasso update function described in thedouble
Update function specific to Laplace Prior.从类继承的方法 weka.classifiers.bayes.blr.Prior
computelogLikelihood, getLoglikelihood, getLogPosterior, getPenalty
-
构造器详细资料
-
LaplacePriorImpl
public LaplacePriorImpl()
-
-
方法详细资料
-
update
public double update(int j, Instances instances, double beta, double hyperparameter, double[] r, double deltaV) Update function specific to Laplace Prior. -
laplaceUpdate
public double laplaceUpdate(int j, double sign) This is the CLG-lasso update function described in the@TechReport{blrtext04, author = {Alexander Genkin and David D. Lewis and David Madigan}, title = {Large-scale bayesian logistic regression for text categorization}, institution = {DIMACS}, year = {2004}, url = "http://www.stat.rutgers.edu/~madigan/PAPERS/shortFat-v3a.pdf", OPTannote = {} }
- 参数:
j
-- 返回:
- double value
-
computeLogLikelihood
Computes the log-likelihood values using the implementation in the Prior class.- 参数:
betas
-instances
-hyperparameter
-
-
computePenalty
public void computePenalty(double[] betas, double[] hyperparameters) This function computes the penalty term specific to Laplacian distribution.- 覆盖:
computePenalty
在类中Prior
- 参数:
betas
-hyperparameters
-
-
getRevision
Returns the revision string.- 返回:
- the revision
-