@@ -455,7 +455,9 @@ def __init__(
455455 if exploration_decay is not None and not (0 < exploration_decay <= 1 ):
456456 error_msg = "exploration_decay must be greater than 0 and less than or equal to 1."
457457 raise ValueError (error_msg )
458- if exploration_decay_delay is not None and (not isinstance (exploration_decay_delay , int ) or exploration_decay_delay < 0 ):
458+ if exploration_decay_delay is not None and (
459+ not isinstance (exploration_decay_delay , int ) or exploration_decay_delay < 0
460+ ):
459461 error_msg = "exploration_decay_delay must be an integer greater than or equal to 0."
460462 raise ValueError (error_msg )
461463
@@ -616,7 +618,9 @@ def __init__(
616618 if exploration_decay is not None and not (0 < exploration_decay <= 1 ):
617619 error_msg = "exploration_decay must be greater than 0 and less than or equal to 1."
618620 raise ValueError (error_msg )
619- if exploration_decay_delay is not None and (not isinstance (exploration_decay_delay , int ) or exploration_decay_delay < 0 ):
621+ if exploration_decay_delay is not None and (
622+ not isinstance (exploration_decay_delay , int ) or exploration_decay_delay < 0
623+ ):
620624 error_msg = "exploration_decay_delay must be an integer greater than or equal to 0."
621625 raise ValueError (error_msg )
622626
@@ -800,10 +804,12 @@ def __init__(
800804 if exploration_decay is not None and not (0 < exploration_decay <= 1 ):
801805 error_msg = "exploration_decay must be greater than 0 and less than or equal to 1."
802806 raise ValueError (error_msg )
803- if exploration_decay_delay is not None and (not isinstance (exploration_decay_delay , int ) or exploration_decay_delay < 0 ):
807+ if exploration_decay_delay is not None and (
808+ not isinstance (exploration_decay_delay , int ) or exploration_decay_delay < 0
809+ ):
804810 error_msg = "exploration_decay_delay must be an integer greater than or equal to 0."
805811 raise ValueError (error_msg )
806-
812+
807813 super ().__init__ (random_state = random_state )
808814 self .xi = xi
809815 self .exploration_decay = exploration_decay
0 commit comments