Automatically generated documentation is wrong for (Spectral) loss function
It should be:
-Output: :returns: mean [resp. sum] of log proba if normalize is True [resp. False] and y is None; mean [resp. sum] of the square of differences if normalize is True [resp. False] and y is a vector of target values.