[Tune] Access trial name from within trainable class
See original GitHub issueIt would be useful to be able to access the trial name from within a Trainable
.
Current solution:
class RayWorker(tune.Trainable):
def _setup(self, config):
self.trial_name = self._logdir.split('/')[-1].split('_')[0]
However this will only work when the default logging setup is used
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Training (tune.Trainable, session.report) — Ray 2.2.0
The Function API allows you to define a custom training function that Tune will run in parallel Ray actor processes, one for each...
Read more >Hyperparameter tuning with Ray Tune - PyTorch
Ray Tune is an industry standard tool for distributed hyperparameter tuning. ... The selected number of GPUs are made visible to PyTorch in...
Read more >tune.py - ray-project/ray - Sourcegraph
getLogger(__name__) ... trainable function or class registered in the tune registry. ... identifier (such as `Trial.trial_id`) in each trial's name.
Read more >python - Ray Tune error when using Trainable class with tune ...
Can you try upgrading Ray? The latest version is 1.4.1, and the docs you linked are from latest master. In 1.2.0, tune.with_parameters only ......
Read more >Simple hyperparameter and architecture search in tensorflow ...
import ray.tune as tune class Model: # TODO implement class ... model # Hyperparameters for this trial can be accessed in dictionary ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can now access the trial name in the trainable.
cool!!!