(self, try_mutate: bool, **impl_params)
return new_step
This method updates the parameters of the operator.
        If try_mutate is set, it will attempt to update the operator in place
        this may not always be possible
This method updates the parameters of the operator.
        If try_mutate is set, it will attempt to update the operator in place
        this may not always be possible
This method updates the parameters of the operator . If try_mutate is set it will attempt to update the operator in place this may not always be possible
def _with_params(self, try_mutate: bool, **impl_params) -> Operator:
        """
        This method updates the parameters of the operator.
        If try_mutate is set, it will attempt to update the operator in place
        this may not always be possible
        """
        choices = self.steps()
        choice_index: int
        choice_params: Dict[str, Any]
        if len(choices) == 1:
            choice_index = 0
            chosen_params = impl_params
        else:
            (choice_index, chosen_params) = partition_sklearn_choice_params(impl_params)

        assert 0 <= choice_index and choice_index < len(choices)
        choice: Operator = choices[choice_index]

        new_step = choice._with_params(try_mutate, **chosen_params)
        # in the functional case
        # we remove the OperatorChoice, replacing it with the branch that was taken
        # TODO: in the mutating case, we could update this choice
        return new_step
def _with_params ( self , try_mutate : bool , * * impl_params ) -> Operator : choices = self . steps ( ) choice_index : int choice_params : Dict [ str , Any ] if len ( choices ) == 1 : choice_index = 0 chosen_params = impl_params else : ( choice_index , chosen_params ) = partition_sklearn_choice_params ( impl_params ) assert 0 <= choice_index and choice_index < len ( choices ) choice : Operator = choices [ choice_index ] new_step = choice . _with_params ( try_mutate , * * chosen_params ) # in the functional case # we remove the OperatorChoice, replacing it with the branch that was taken # TODO: in the mutating case, we could update this choice return new_step