#include <MRF.hpp>
Inheritance diagram for MRF:
Public Member Functions | |
virtual | ~MRF () |
Destructor. | |
uint | Get_K () |
Get the number of classess/colors ... | |
virtual double | H (uint i, uint k, vector< uint > const &Z) |
Hamiltonian. | |
virtual double | Hmf (uint i, uint k) |
Mean-field hamiltonian, ![]() | |
double | PL (vector< uint > const &Z) |
compute the pseudo-likelihood for data ![]() | |
virtual void | Gradient (vector< double > const &tik, vector< double > &Q) |
Compute the gradient. | |
virtual void | Update_Gradient (vector< double > const &Q) |
Update model parameters in the gradient descent. | |
virtual void | Read_Params (istream &is) |
Read the model parameters from the stream is. | |
virtual void | Write_Params (ostream &os) |
Write the model parameters to the stream os. | |
virtual uint | Degrees_Of_Freedom () |
Number of free parameters. | |
virtual void | Info () |
Print some info on the model. | |
Protected Member Functions | |
void | Precompute_Smf () |
Precompute mean-field sums of Z (for the gradient algo.). | |
Protected Attributes | |
uint | K |
Number of classes. |
|
Destructor. |
|
Number of free parameters.
Reimplemented from Random_Field. Reimplemented in External_Potts, Generic_Potts, and Potts. |
|
Get the number of classes/colors.
Reimplemented from Random_Field. |
|
Computes the gradient given
Reimplemented from Random_Field. Reimplemented in External_Potts, Generic_Potts, and Potts. |
|
Compute the Hamiltonian
Reimplemented from Random_Field. Reimplemented in External_Potts, Generic_Potts, and Potts. |
|
Compute the Hamiltonian mean-field approximation, given
Reimplemented from Random_Field. Reimplemented in External_Potts, Generic_Potts, and Potts. |
|
Print some info on the model. Reimplemented from Random_Field. Reimplemented in External_Potts, Generic_Potts, and Potts. |
|
Compute the pseudo-Likelihhod of a given realization Z.
|
|
Read the model parameters from the stream is. Reimplemented from Random_Field. Reimplemented in External_Potts, Generic_Potts, and Potts. |
|
Updates the model parameters in the gradient descent.
Reimplemented from Random_Field. Reimplemented in External_Potts, Generic_Potts, and Potts. |
|
Write the model parameters to the stream os. Reimplemented from Random_Field. Reimplemented in External_Potts, Generic_Potts, and Potts. |