Welcome to our Support Center

Huber

Description

Computes the Huber loss between y_true and y_pred.​ Type : polymorphic.

 

 

 

Input parameters

 

Huber in : class
Parameters : cluster,

 delta : float, the point where the Huber loss function changes from a quadratic to linear.
reduction : enum, type of reduction to apply to the loss. In almost all cases this should be “Sum over Batch“.

 

Output parameters

 

Huber out : class

Required data

 y_pred : array, predicted values.
 y_true : array, true values.

Use cases

Huber loss is a loss function commonly used in regression. It combines the advantages of mean squared error (MSE) and mean absolute error (MAE) to create a loss function that is less sensitive to outliers. For small errors, it acts like an MSE, favoring accuracy, and for large errors, it becomes similar to an MAE, reducing sensitivity to extreme values. This characteristic makes it particularly useful in cases where the data contains outliers or significant errors.

Example

All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install HAIBAL library to run it).

Table of Contents