Inheritance diagram for classias::classify::linear_binary_logistic< model_tmpl >:

This template class implements a loss function for training algorithms.
| model_tmpl | The type of a model (container of feature weights). Any type that yields a feature weight with operator [] is usable (e.g., arrays, std::vector, std::map).  | 
Public Types | |
| typedef model_tmpl | model_type | 
| The type of a model.  | |
| typedef model_type::value_type | value_type | 
| The type of a feature weight.  | |
| typedef linear_binary< model_tmpl > | base_type | 
| Tne type of the base class.  | |
Public Member Functions | |
| linear_binary_logistic (const model_type &model) | |
| Constructs an object.   | |
| virtual | ~linear_binary_logistic () | 
| Destructs an object.  | |
| value_type | prob () const | 
| Computes the probability of the instance being positive.   | |
| value_type | error (bool b) const | 
| Computes the error of the classification result.   | |
| value_type | error (bool b, value_type &loss) const | 
| Computes the error and loss of the classification result.   | |
Static Public Member Functions | |
| static const char * | name () | 
| Returns the name of this classifier.   | |
| classias::classify::linear_binary_logistic< model_tmpl >::linear_binary_logistic | ( | const model_type & | model | ) |  [inline] | 
        
Constructs an object.
| model | The model associated with the classifier. | 
| value_type classias::classify::linear_binary_logistic< model_tmpl >::prob | ( | ) |  const [inline] | 
        
Computes the probability of the instance being positive.
| value_type classias::classify::linear_binary_logistic< model_tmpl >::error | ( | bool | b | ) |  const [inline] | 
        
Computes the error of the classification result.
| b | The reference label for this instance. | 
| value_type classias::classify::linear_binary_logistic< model_tmpl >::error | ( | bool | b, | |
| value_type & | loss | |||
| ) |  const [inline] | 
        
Computes the error and loss of the classification result.
| b | The reference label for this instance. | |
| loss | The negative of the log of the probability of the instance being classified to the reference label. | 
| static const char* classias::classify::linear_binary_logistic< model_tmpl >::name | ( | ) |  [inline, static] | 
        
Returns the name of this classifier.
Reimplemented from classias::classify::linear_binary< model_tmpl >.