public abstract class Prior extends java.lang.Object implements java.io.Serializable, RevisionHandler
| Constructor and Description |
|---|
Prior() |
| Modifier and Type | Method and Description |
|---|---|
void |
computelogLikelihood(double[] betas,
Instances instances)
Function computes the log-likelihood value:
-sum{1 to n}{ln(1+exp(-Beta*x(i)*y(i))}
|
void |
computePenalty(double[] betas,
double[] hyperparameters)
Skeleton function to compute penalty terms.
|
double |
getLoglikelihood() |
double |
getLogPosterior() |
double |
getPenalty() |
double |
update(int j,
Instances instances,
double beta,
double hyperparameter,
double[] r,
double deltaV)
Interface for the update functions for different types of
priors.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRevisionpublic double update(int j,
Instances instances,
double beta,
double hyperparameter,
double[] r,
double deltaV)
public void computelogLikelihood(double[] betas,
Instances instances)
betas - instances - public void computePenalty(double[] betas,
double[] hyperparameters)
betas - hyperparameters - public double getLoglikelihood()
public double getLogPosterior()
public double getPenalty()