|
OpenGM
2.3.x
Discrete Graphical Model Library
|
Learnable feature function for two variables. More...
#include <lpotts.hxx>
Inheritance diagram for opengm::functions::learnable::LPotts< T, I, L >:
Collaboration diagram for opengm::functions::learnable::LPotts< T, I, L >:Public Types | |
| typedef T | ValueType |
| typedef L | LabelType |
| typedef I | IndexType |
Public Types inherited from opengm::FunctionBase< opengm::functions::learnable::LPotts< T, I, L >, T, I, L > | |
| typedef AccessorIterator< FunctionShapeAccessorType, true > | FunctionShapeIteratorType |
Public Member Functions | |
| LPotts () | |
| LPotts (const opengm::learning::Weights< T > &weights, const L numLabels, const std::vector< size_t > &weightIDs, const std::vector< T > &feat) | |
| LPotts (const L numLabels, const std::vector< size_t > &weightIDs, const std::vector< T > &feat) | |
| L | shape (const size_t) const |
| size_t | size () const |
| size_t | dimension () const |
| template<class ITERATOR > | |
| T | operator() (ITERATOR) const |
| void | setWeights (const opengm::learning::Weights< T > &weights) const |
| size_t | numberOfWeights () const |
| I | weightIndex (const size_t weightNumber) const |
| template<class ITERATOR > | |
| T | weightGradient (size_t, ITERATOR) const |
| bool | isPotts () const |
| bool | isGeneralizedPotts () const |
Public Member Functions inherited from opengm::FunctionBase< opengm::functions::learnable::LPotts< T, I, L >, T, I, L > | |
| bool | isPotts () const |
| bool | isGeneralizedPotts () const |
| bool | isSubmodular () const |
| bool | isSquaredDifference () const |
| bool | isTruncatedSquaredDifference () const |
| bool | isAbsoluteDifference () const |
| bool | isTruncatedAbsoluteDifference () const |
| bool | isLinearConstraint () const |
| MinMaxFunctor< T > | minMax () const |
| find minimum and maximum of the function in a single sweep More... | |
| ReturnType | min () const |
| ReturnType | max () const |
| ReturnType | sum () const |
| ReturnType | product () const |
| ReturnType | accumulate () const |
| accumulate all values of the function More... | |
| void | forAllValuesInOrder (FUNCTOR &functor) const |
| call a functor for each value of the function (in lexicographical order of the variable indices) More... | |
| void | forAllValuesInSwitchedOrder (FUNCTOR &functor) const |
| void | forAllValuesInAnyOrder (FUNCTOR &functor) const |
| call a functor for each value of the function (in un-specified order) More... | |
| void | forAtLeastAllUniqueValues (FUNCTOR &functor) const |
| call a functor for at least all unique values of the function More... | |
| void | forAllValuesInOrderWithCoordinate (COORDINATE_FUNCTOR &functor) const |
| void | forAllValuesInAnyOrderWithCoordinate (COORDINATE_FUNCTOR &functor) const |
| void | forAtLeastAllUniqueValuesWithCoordinate (COORDINATE_FUNCTOR &functor) const |
| bool | operator== (const opengm::functions::learnable::LPotts< T, I, L > &) const |
| FunctionShapeIteratorType | functionShapeBegin () const |
| FunctionShapeIteratorType | functionShapeEnd () const |
| size_t | numberOfWeights () const |
| I | weightIndex (const size_t weightNumber) const |
| void | setWeights (const opengm::learning::Weights< T > &) const |
| T | weightGradient (size_t, ITERATOR) const |
Protected Attributes | |
| const opengm::learning::Weights< T > * | weights_ |
| L | numLabels_ |
| std::vector< size_t > | weightIDs_ |
| std::vector< T > | feat_ |
Learnable feature function for two variables.
f(u,v) = ( w_i * feat_i) I(u!=v)
derive from this class and implement the function paramaterGradient(i,x)= A(x)_{i,*}*feat
Definition at line 29 of file lpotts.hxx.
| typedef I opengm::functions::learnable::LPotts< T, I, L >::IndexType |
Definition at line 35 of file lpotts.hxx.
| typedef L opengm::functions::learnable::LPotts< T, I, L >::LabelType |
Definition at line 34 of file lpotts.hxx.
| typedef T opengm::functions::learnable::LPotts< T, I, L >::ValueType |
Definition at line 33 of file lpotts.hxx.
|
inline |
Definition at line 106 of file lpotts.hxx.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
Definition at line 153 of file lpotts.hxx.
|
inline |
Definition at line 63 of file lpotts.hxx.
|
inline |
Definition at line 62 of file lpotts.hxx.
|
inline |
|
inline |
|
inline |
Definition at line 53 of file lpotts.hxx.
|
inline |
|
inline |
Definition at line 159 of file lpotts.hxx.
|
inline |
Definition at line 117 of file lpotts.hxx.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 57 of file lpotts.hxx.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 69 of file lpotts.hxx.
|
protected |
Definition at line 67 of file lpotts.hxx.
|
protected |
Definition at line 68 of file lpotts.hxx.
|
mutableprotected |
Definition at line 66 of file lpotts.hxx.
1.8.12