**python - Asymmetric Function for Loss - Stack Overflow**
https://stackoverflow.com/questions/69644330/asymmetric-function-for-loss

Oct 20, 2021 · The line where loss is worked out has a comparison. loss = np.where(residual < 0, (residual**2)*10.0, residual**2) When residual is less that 0, loss is residual^2 * 10 where whne about 0, loss is just redisual^2. So if we change this less than to a greater than. This will flip the skew. loss = np.where(residual > 0, (residual**2)*10.0, residual**2) Reviews: 1

**Reviews:** 1

**DA:** 2 **PA:** 76 **MOZ Rank:** 29