[Question] Multiple Callbacks For callback_on_new_best #1791
Labels
bug
Something isn't working
help wanted
Help from contributors is welcomed
question
Further information is requested
❓ Question
I have a simple use case that I have found no answer to in the documentation. (v. 2.2.1)
I want to pass two chained callbacks as a
callback_on_new_best
forEvalCallback
. (A custom one for drawing a figure and a library one - StopTrainingOnRewardThreshold)Passing a
CallbackList
doesn't seem to work, since theparent
attribute of the callbacks is None, and the code throws anAssertionError
because it asserts theirparent
is theEvalCallback
.There seem to be no other options except building a custom callback that does them both, but this doesn't seem like good practice given that CallbackList does exist.
Am I missing something?
Minimal reproducible:
Thanks a lot!
Checklist
The text was updated successfully, but these errors were encountered: