TRF Language Model
|
#include <hrf-code-exam.h>
Public Member Functions | |
ModelExam (Model *p) | |
void | SetValueAll (PValue v) |
set parameter values More... | |
void | SetValueRand () |
set parameter values randomly More... | |
void | TestNormalization (int nLen) |
test the exact normalization More... | |
void | TestExpectation (int nLen) |
test feat expectation More... | |
void | TestHiddenExp (int nLen) |
test hidden expectation More... | |
void | TestSample (int nLen=-1) |
test sample More... | |
Public Attributes | |
Model * | pm |
Definition at line 9 of file hrf-code-exam.h.
|
inline |
Definition at line 15 of file hrf-code-exam.h.
void hrf::ModelExam::SetValueAll | ( | PValue | v | ) |
set parameter values
Definition at line 5 of file hrf-code-exam.cpp.
void hrf::ModelExam::SetValueRand | ( | ) |
set parameter values randomly
Definition at line 11 of file hrf-code-exam.cpp.
void hrf::ModelExam::TestExpectation | ( | int | nLen | ) |
test feat expectation
Definition at line 34 of file hrf-code-exam.cpp.
void hrf::ModelExam::TestHiddenExp | ( | int | nLen | ) |
test hidden expectation
Definition at line 62 of file hrf-code-exam.cpp.
void hrf::ModelExam::TestNormalization | ( | int | nLen | ) |
test the exact normalization
Definition at line 18 of file hrf-code-exam.cpp.
void hrf::ModelExam::TestSample | ( | int | nLen = -1 | ) |
test sample
Definition at line 108 of file hrf-code-exam.cpp.
Model* hrf::ModelExam::pm |
Definition at line 12 of file hrf-code-exam.h.