Updated f-string method  resubmit changes from the PR
@@ -107,8 +107,8 @@ class BaseWrapper:
else:
if params_name != "nb_epoch":
raise ValueError(
- "{} is not a legal parameter".format(params_name)
- )
+ f"{params_name} is not a legal parameter"
+ ) # noqa: E501
def get_params(self, **params):
"""Gets parameters for this estimator.
