Machine Learning, Deep Learning, Trading, Finance, Stock Market.
alpha is needed to control the penalty amount. To apply this loss function to our model we need simply compile the model with it: model.compile(optimizer=opt, loss=stock_loss) Let’s check results! NN predictions based on modified MAE loss function In terms of metrics it’s just slightly better: MSE