|
cMHN 1.0
C++ library for learning MHNs with pRC
|
Class storing a KL-Taylor-Hybrid Score, specializes the Score class. More...
#include <score.hpp>
Public Member Functions | |
| ~KLTHScore ()=default | |
| KLTHScore (KLTHScore const &)=default | |
| KLTHScore (KLTHScore &&)=default | |
| KLTHScore & | operator= (KLTHScore const &) &=default |
| KLTHScore & | operator= (KLTHScore &&) &=default |
| KLTHScore (T const &threshold) | |
| auto & | threshold () |
| auto const | threshold () const |
Public Member Functions inherited from cMHN::Score< T > | |
| ~Score ()=default | |
| Score (Score const &)=default | |
| Score (Score &&)=default | |
| Score & | operator= (Score const &) &=default |
| Score & | operator= (Score &&) &=default |
| Score ()=delete | |
| Score (auto const &pointwiseScore, auto const &pointwiseDSDP, auto const &name) | |
| auto | pointwiseScore (T const &pDE, T const &pThetaE) const |
| auto | pointwiseDSDP (T const &pDE, T const &pThetaE) const |
| auto | name () const |
Class storing a KL-Taylor-Hybrid Score, specializes the Score class.
This score calculates the pointwise KL Score, i.e. pointwiseScore(pDE, pThetaE) = pDE * log(pThetaE), if the entry pThetaE is above a given threshold. If pThetaE is smaller than that threshold, it uses a taylor expansion of the logarithm to second order at the threshold value.
Note that none of the functions (pointwiseScore, pointwiseDSDP) can be changed.
Only the threshold value can be changed.
| T | type used for calculations |
|
default |
|
default |
|
default |
|
inlineexplicit |
|
inline |
|
inline |