|
OpenGM
2.3.x
Discrete Graphical Model Library
|
Learnable weighted sum of feature-functions. More...
#include <lweightedsum_of_functions.hxx>
Inheritance diagram for opengm::functions::learnable::LWeightedSumOfFunctions< T, I, L >:
Collaboration diagram for opengm::functions::learnable::LWeightedSumOfFunctions< T, I, L >:Public Types | |
| typedef T | ValueType |
| typedef L | LabelType |
| typedef I | IndexType |
Public Types inherited from opengm::FunctionBase< opengm::functions::learnable::LWeightedSumOfFunctions< T, I, L >, T, I, L > | |
| typedef AccessorIterator< FunctionShapeAccessorType, true > | FunctionShapeIteratorType |
Public Member Functions | |
| LWeightedSumOfFunctions () | |
| LWeightedSumOfFunctions (const std::vector< L > &shape, const opengm::learning::Weights< T > &weights, const std::vector< size_t > &weightIDs, const std::vector< marray::Marray< 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 |
Public Member Functions inherited from opengm::FunctionBase< opengm::functions::learnable::LWeightedSumOfFunctions< 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::LWeightedSumOfFunctions< 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_ |
| std::vector< L > | shape_ |
| std::vector< size_t > | weightIDs_ |
| std::vector< marray::Marray< T > > | feat_ |
Learnable weighted sum of feature-functions.
f(x) = w(i) * feat(i)(x)
Definition at line 28 of file lweightedsum_of_functions.hxx.
| typedef I opengm::functions::learnable::LWeightedSumOfFunctions< T, I, L >::IndexType |
Definition at line 34 of file lweightedsum_of_functions.hxx.
| typedef L opengm::functions::learnable::LWeightedSumOfFunctions< T, I, L >::LabelType |
Definition at line 33 of file lweightedsum_of_functions.hxx.
| typedef T opengm::functions::learnable::LWeightedSumOfFunctions< T, I, L >::ValueType |
Definition at line 32 of file lweightedsum_of_functions.hxx.
|
inline |
Definition at line 89 of file lweightedsum_of_functions.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 71 of file lweightedsum_of_functions.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 134 of file lweightedsum_of_functions.hxx.
Here is the caller graph for this function:
|
inline |
Definition at line 51 of file lweightedsum_of_functions.hxx.
Here is the caller graph for this function:
|
inline |
Definition at line 112 of file lweightedsum_of_functions.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 49 of file lweightedsum_of_functions.hxx.
|
inline |
Definition at line 126 of file lweightedsum_of_functions.hxx.
Here is the caller graph for this function:
|
inline |
Definition at line 140 of file lweightedsum_of_functions.hxx.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 100 of file lweightedsum_of_functions.hxx.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 53 of file lweightedsum_of_functions.hxx.
Here is the call graph for this function:
|
protected |
Definition at line 62 of file lweightedsum_of_functions.hxx.
|
protected |
Definition at line 60 of file lweightedsum_of_functions.hxx.
|
protected |
Definition at line 61 of file lweightedsum_of_functions.hxx.
|
mutableprotected |
Definition at line 59 of file lweightedsum_of_functions.hxx.
1.8.12