if
expression used can be simplified PYL-R1719 51 if validation_x is not None and validation_y is not None:
52 eval_set += [(validation_x, validation_y)]
53 if verbose is None:
54 verbose = True if lore.env.NAME == lore.env.DEVELOPMENT else False 55 try:
56 super(Base, self).fit(
57 X=x,
The if
expression used here can be simplified to increase the code readability.
Example:
value = True if arg else False
This can be simplified into:
value = bool(arg)