public abstract class Prior extends Object implements Serializable, RevisionHandler
Modifier and Type | Field and Description |
---|---|
protected double |
Beta |
protected double |
Delta |
protected double |
DeltaUpdate |
protected double |
Hyperparameter |
protected double |
log_likelihood |
protected double |
log_posterior |
protected Instances |
m_Instances |
protected double |
penalty |
protected double[] |
R |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRevision
protected Instances m_Instances
protected double Beta
protected double Hyperparameter
protected double DeltaUpdate
protected double[] R
protected double Delta
protected double log_posterior
protected double log_likelihood
protected double penalty
public 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()
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.