MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF / CRFEnergy

Method CRFEnergy

dependency/densecrf/examples/dense_learning.cpp:47–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 float l2_norm_;
46public:
47 CRFEnergy( DenseCRF & crf, const ObjectiveFunction & objective, int NIT, bool unary=1, bool pairwise=1, bool kernel=1 ):crf_(crf),objective_(objective),NIT_(NIT),unary_(unary),pairwise_(pairwise),kernel_(kernel),l2_norm_(0.f){
48 initial_u_param_ = crf_.unaryParameters();
49 initial_lbl_param_ = crf_.labelCompatibilityParameters();
50 initial_knl_param_ = crf_.kernelParameters();
51 }
52 void setL2Norm( float norm ) {
53 l2_norm_ = norm;
54 }

Callers

nothing calls this directly

Calls 3

unaryParametersMethod · 0.45
kernelParametersMethod · 0.45

Tested by

no test coverage detected