|
SHOGUN
v1.1.0
|
CSmoothHingeLoss implements the smooth hinge loss function.
Definition at line 21 of file SmoothHingeLoss.h.

Additional Inherited Members | |
Public Attributes inherited from CSGObject | |
| SGIO * | io |
| Parallel * | parallel |
| Version * | version |
| Parameter * | m_parameters |
| Parameter * | m_model_selection_parameters |
Protected Member Functions inherited from CSGObject | |
| virtual void | load_serializable_pre () throw (ShogunException) |
| virtual void | load_serializable_post () throw (ShogunException) |
| virtual void | save_serializable_pre () throw (ShogunException) |
| virtual void | save_serializable_post () throw (ShogunException) |
| CSmoothHingeLoss | ( | ) |
Constructor
Definition at line 27 of file SmoothHingeLoss.h.
| ~CSmoothHingeLoss | ( | ) |
Destructor
Definition at line 32 of file SmoothHingeLoss.h.
Get first derivative of the loss function
| prediction | prediction |
| label | label |
Implements CLossFunction.
Definition at line 25 of file SmoothHingeLoss.cpp.
|
virtual |
Return loss type
Implements CLossFunction.
Definition at line 91 of file SmoothHingeLoss.h.
|
virtual |
Return the name of the object
Reimplemented from CLossFunction.
Definition at line 93 of file SmoothHingeLoss.h.
Get square of gradient, used for adaptive learning
| prediction | prediction |
| label | label |
Implements CLossFunction.
Definition at line 51 of file SmoothHingeLoss.cpp.
|
virtual |
Get importance aware weight update for this loss function
| prediction | prediction |
| label | label |
| eta_t | learning rate at update number t |
| norm | scale value |
Implements CLossFunction.
Definition at line 45 of file SmoothHingeLoss.cpp.
Get loss for an example
| prediction | prediction |
| label | label |
Implements CLossFunction.
Definition at line 15 of file SmoothHingeLoss.cpp.
Get second derivative of the loss function
| prediction | prediction |
| label | label |
Implements CLossFunction.
Definition at line 35 of file SmoothHingeLoss.cpp.