Der mittlere quadratische logarithmische Fehler (MSLE) ist ein Verlustfunktion commonly used in regression tasks, particularly when the target variable can vary across several orders of magnitude. MSLE is defined as the average of the squared differences between the logarithmic values of the predicted and actual values.
Die Formel für MSLE kann ausgedrückt werden als:
MSLE = (1/n) * Σ (log(1 + y_true) – log(1 + y_pred))²
wobei:
- y_true repräsentiert die tatsächlichen Werte.
- y_pred repräsentiert die vorhergesagten Werte.
- n ist die Anzahl der Beobachtungen.
By taking the logarithm of the values, MSLE can effectively handle skewed distributions and is particularly useful in cases where we want to penalize underestimations more than overestimations. This property makes MSLE suitable for situations where the predicted values can be zero oder wenn die Skala der Daten stark variiert.
MSLE hat auch Vorteile bei interpretability, as it measures the relative difference between the actual and predicted values. A lower MSLE indicates a better fit of the model to the data, while a higher MSLE signifies a poorer Modellleistung. In practice, MSLE is often preferred over Mittlerer quadratischer Fehler (MSE) when dealing with exponential growth scenarios or when the predictions are expected to be on a logarithmic scale.