Skip to content

#51: Fix default value handling of callbacks in .fit(...)

Alessandro Maissen requested to merge #51-fix-default_value_of_callbacks into master

This MR should close #51 (closed) and makes the following two changes.

  1. By default callbacks=None and is of type Union[Callback, List[Callback], None] so we
  • First check if single callback is passed, if yes transform to list
  • Secondly if it was not a list of callbacks check if None, if None set to empty list, else keep list
  1. Improves documentation and type annotations
Edited by Alessandro Maissen

Merge request reports

Loading