The Huber loss is a loss function used in robust regression, that is less sensitive to outliers in data than the squared error loss.
More...
|
| | HuberLoss (const double delta=1.0, const bool mean=true) |
| | Create the HuberLoss object. More...
|
| |
| template<typename InputType , typename TargetType , typename OutputType > |
| void | Backward (const InputType &input, const TargetType &target, OutputType &output) |
| | Ordinary feed backward pass of a neural network. More...
|
| |
| double | Delta () const |
| | Get the value of delta. More...
|
| |
| double & | Delta () |
| | Set the value of delta. More...
|
| |
| template<typename InputType , typename TargetType > |
| InputType::elem_type | Forward (const InputType &input, const TargetType &target) |
| | Computes the Huber Loss function. More...
|
| |
| bool | Mean () const |
| | Get the value of reduction type. More...
|
| |
| bool & | Mean () |
| | Set the value of reduction type. More...
|
| |
| OutputDataType & | OutputParameter () const |
| | Get the output parameter. More...
|
| |
| OutputDataType & | OutputParameter () |
| | Modify the output parameter. More...
|
| |
| template<typename Archive > |
| void | serialize (Archive &ar, const unsigned int) |
| | Serialize the layer. More...
|
| |
template<typename InputDataType = arma::mat, typename OutputDataType = arma::mat>
class mlpack::ann::HuberLoss< InputDataType, OutputDataType >
The Huber loss is a loss function used in robust regression, that is less sensitive to outliers in data than the squared error loss.
This function is quadratic for small values of
, and linear for large values, with equal values and slopes of the different sections at the two points where
.
- Template Parameters
-
| InputDataType | Type of the input data (arma::colvec, arma::mat, arma::sp_mat or arma::cube). |
| OutputDataType | Type of the output data (arma::colvec, arma::mat, arma::sp_mat or arma::cube). |
Definition at line 36 of file huber_loss.hpp.