(self, elapsed_seconds: Optional[float])
Update the progress bars if ``is_valid`` is :obj:`True`.

        Args:
            elapsed_seconds:
                The time past since :func:`~optuna.study.Study.optimize` started.
Update the progress bars if ``is_valid`` is :obj:`True`.
Update the progress bars if is_valid is : obj : True .
def update(self, elapsed_seconds: Optional[float]) -> None:
        """Update the progress bars if ``is_valid`` is :obj:`True`.

        Args:
            elapsed_seconds:
                The time past since :func:`~optuna.study.Study.optimize` started.
        """
        if self._is_valid:
            self._progress_bar.update(1)
            if self._timeout is not None and elapsed_seconds is not None:
                self._progress_bar.set_postfix_str(
                    "{:.02f}/{} seconds".format(elapsed_seconds, self._timeout)
                )
def update ( self , elapsed_seconds : Optional [ float ] ) -> None : if self . _is_valid : self . _progress_bar . update ( 1 ) if self . _timeout is not None and elapsed_seconds is not None : self . _progress_bar . set_postfix_str ( "{:.02f}/{} seconds" . format ( elapsed_seconds , self . _timeout ) )