类 Prior

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

public abstract class Prior extends Object implements Serializable, RevisionHandler
This is an interface to plug various priors into the Bayesian Logistic Regression Model.
版本:
$Revision: 1.2 $
作者:
Navendu Garg (gargnav@iit.edu)
另请参阅:
  • 构造器详细资料

    • Prior

      public Prior()
  • 方法详细资料

    • update

      public double update(int j, Instances instances, double beta, double hyperparameter, double[] r, double deltaV)
      Interface for the update functions for different types of priors.
    • computelogLikelihood

      public void computelogLikelihood(double[] betas, Instances instances)
      Function computes the log-likelihood value: -sum{1 to n}{ln(1+exp(-Beta*x(i)*y(i))}
      参数:
      betas -
      instances -
    • computePenalty

      public void computePenalty(double[] betas, double[] hyperparameters)
      Skeleton function to compute penalty terms.
      参数:
      betas -
      hyperparameters -
    • getLoglikelihood

      public double getLoglikelihood()
      返回:
      log-likelihood value.
    • getLogPosterior

      public double getLogPosterior()
      返回:
      regularized log posterior value.
    • getPenalty

      public double getPenalty()
      返回:
      penalty term.