For a binary classification problem I want to use the MLPClassifier
as the base estimator in the AdaBoostClassifier
. However, this does not work because MLPClassifier
does not implement sample_weight
, which is required for AdaBoostClassifier (see here). Before that, I tried using a Keras model and the KerasClassifier
within AdaBoostClassifier
but that did also not work as mentioned here .
A way, which is proposed by User V1nc3nt is to build an own MLPclassifier
in TensorFlow and take into account the sample_weight.
User V1nc3nt shared large parts of his code but since I have only limited experience with Tensorflow, I am not able to fill in the missing parts. Hence, I was wondering if anyone has found a working solution for building Adaboost ensembles from MLPs or can help me out in completing the solution proposed by V1nc3nt.
Thank you very much in advance!