Loss functions used in profetorch.
The most important loss function used is the tilted loss function.
for q in [0.05, 0.5, 0.95]:
y = torch.arange(-5, 5, 0.01)
l = tilted_loss(0, y, q)
plt.plot(y, l, label=q)
plt.legend()
plt.title('Tilted Loss at different quantiles')
plt.xlabel('error')
plt.ylabel('loss')
plt.show()