Check for Wrong Parameters (monotone_constraints)


#1

Hi:

I’m trying to perform an study on using montonic vs non-monotonic methods. However, i just noticed that when using XGBClassifier(…monotone_constraints=(1,1,1)), if i’m using 4 variables, it doesn’t give an error. And if i misspell it (say monotoneconstraints for example), it doesn’t either.

This applies aswell to any random parameter (XGBClassifier( foobar=“abc”) doesn’t give an error

¿Any way of making it detect these wrong parameters? I can’t trust my results if I’m not able to check if monotonic constraints are being applied properly.