Machine Learning, Deep Learning, Trading, Finance, Stock Market.
information about direction of change! We will try to fix it right now. Returns with custom loss function I would like to take a loss function from the book I have mentioned above and implement it for use in Keras: def stock_loss(y_true, y_pred): alpha = 100. loss = K.switch(K.less(y_true * y_pred,