reset#

Trainable.reset(new_config: Dict[str, Any], storage: StorageContext | None = None) → bool[source]#

Resets trial for use with new config.

Subclasses should override reset_config() to actually reset actor behavior for the new config.

Parameters:
  • new_config (Dict[str, Any]) – The config for the new trial. This method removes the trial info and log file entries Tune adds to it.

  • storage (StorageContext | None) – The storage context for the new trial.

Returns:

True if the trainable was reset, False if reset_config returned False.

Return type:

bool