ray.tune.Experiment.register_if_needed#
- classmethod Experiment.register_if_needed(run_object: str | Callable | Type)[source]#
- Registers Trainable or Function at runtime. - Assumes already registered if run_object is a string. Also, does not inspect interface of given run_object. - Parameters:
- run_object – Trainable to run. If string, assumes it is an ID and does not modify it. Otherwise, returns a string corresponding to the run_object name. 
- Returns:
- A string representing the trainable identifier.