I want to train a neural network that has a loss component coming from an AdaBoost classifier.
myLoss(y_true, y_pred, adaClf, Z_):
loss = BinaryCrossEntropy(y_true, y_pred) + MeanSquareError(adaClf.predict(Y_pred), Z_)
return loss
where adaClf
is the scikit-learn classifier. How can I implement this in Keras?