类 LaplacePriorImpl

java.lang.Object
weka.classifiers.bayes.blr.Prior
weka.classifiers.bayes.blr.LaplacePriorImpl
所有已实现的接口:
Serializable, RevisionHandler

public class LaplacePriorImpl extends Prior
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)
另请参阅:
  • 构造器详细资料

    • 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.
      覆盖:
      update 在类中 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

      public void computeLogLikelihood(double[] betas, Instances instances)
      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

      public String getRevision()
      Returns the revision string.
      返回:
      the revision