python/ray/tune/tuner.py
def restore(cls, path: str) -> "Tuner":
        """Restores Tuner after a previously failed run.

        Args:
           path: The path where the previous failed run is checkpointed.
               This information could be easily located near the end of the
               console output of previous run.
               Note: depending on whether ray client mode is used or not,
               this path may or may not exist on your local machine.
        """
        # TODO(xwjiang): Add some comments to clarify the config behavior across
        #  retored runs.
        #  For example, is callbacks supposed to be automatically applied
        #  when a Tuner is restored and fit again?
        if not ray.util.client.ray.is_connected():
            tuner_internal = TunerInternal(restore_path=path)
            return Tuner(_tuner_internal=tuner_internal)
        else:
            tuner_internal = force_on_current_node(
                ray.remote(num_cpus=0)(TunerInternal)
            ).remote(restore_path=path)
            return Tuner(_tuner_internal=tuner_internal)
Restores Tuner after a previously failed run.

        Args:
           path: The path where the previous failed run is checkpointed.
               This information could be easily located near the end of the
               console output of previous run.
               Note: depending on whether ray client mode is used or not,
               this path may or may not exist on your local machine.
        
Restores Tuner after a previously failed run.
Restores Tuner after a previously failed run .
def restore(cls, path: str) -> "Tuner":
        if not ray.util.client.ray.is_connected():
            tuner_internal = TunerInternal(restore_path=path)
            return Tuner(_tuner_internal=tuner_internal)
        else:
            tuner_internal = force_on_current_node(
                ray.remote(num_cpus=0)(TunerInternal)
            ).remote(restore_path=path)
            return Tuner(_tuner_internal=tuner_internal)
def restore ( cls , path : str ) -> "Tuner" : if not ray . util . client . ray . is_connected ( ) : tuner_internal = TunerInternal ( restore_path = path ) return Tuner ( _tuner_internal = tuner_internal ) else : tuner_internal = force_on_current_node ( ray . remote ( num_cpus = 0 ) ( TunerInternal ) ) . remote ( restore_path = path ) return Tuner ( _tuner_internal = tuner_internal )
Restores Tuner after a previously failed run.
Restores Tuner after a previously failed run .
"""Restores Tuner after a previously failed run.

        Args:
           path: The path where the previous failed run is checkpointed.
               This information could be easily located near the end of the
               console output of previous run.
               Note: depending on whether ray client mode is used or not,
               this path may or may not exist on your local machine.
        """ # TODO(xwjiang): Add some comments to clarify the config behavior across #  retored runs. #  For example, is callbacks supposed to be automatically applied #  when a Tuner is restored and fit again?
cls
path
str
The path where the previous failed run is checkpointed.
This information could be easily located near the end of the
console output of previous run.
Note: depending on whether ray client mode is used or not,
this path may or may not exist on your local machine.
The path where the previous failed run is checkpointed . This information could be easily located near the end of the console output of previous run . Note : depending on whether ray client mode is used or not this path may or may not exist on your local machine .