When looking at the code, the base_algorithm is not part of the function signature but is referred to as self. base_algorithm at line 300.
if isinstance(self.base_algorithm, list):
if (fitted_classifier is not None):
raise ValueError("Must pass 'fitted_classifier' when using different 'base_algorithm' per arm.")
When using BootstrappedUCB.add_arm() the NameError: name 'base_algorithm' is not defined is raised on line 297 under the _BasePolicy.add_arm() method.
When looking at the code, the base_algorithm is not part of the function signature but is referred to as self. base_algorithm at line 300.
To be corrected.