28 DllExport
virtual ~CInfer() =
default;
39 DllExport
virtual void infer(
unsigned int nIt = 1) = 0;
61 DllExport vec_byte_t
decode(
unsigned int nIt = 0, Mat &lossMatrix = EmptyMat);
virtual void infer(unsigned int nIt=1)=0
Inference.
vec_float_t getPotentials(byte state) const
Returns the potnetials for the selected state (class)
Interface class for graphical models.
virtual ~CInfer()=default
vec_byte_t decode(unsigned int nIt=0, Mat &lossMatrix=EmptyMat)
Approximate decoding.
CGraph & getGraph(void) const
Returns the reference to the graph.
vec_float_t getConfidence(void) const
Returns the confidence of the perdiction.
CInfer(CGraph &graph)
Constructor.
Base abstract class for random model inference.
const CInfer & operator=(const CInfer &)=delete