mirror of
https://github.com/wassname/ray.git
synced 2026-07-14 11:17:54 +08:00
[tune] Documentation for Ray.tune (#1243)
This commit is contained in:
@@ -6,11 +6,11 @@ from __future__ import print_function
|
||||
class Trainable(object):
|
||||
"""Interface for trainable models, functions, etc.
|
||||
|
||||
Implementing this interface is required to use ray.tune's full
|
||||
Implementing this interface is required to use Ray.tune's full
|
||||
functionality, though you can also get away with supplying just a
|
||||
`my_train(config, reporter)` function and calling:
|
||||
|
||||
register_trainable("my_func", train)
|
||||
``register_trainable("my_func", train)``
|
||||
|
||||
to register it for use with tune. The function will be automatically
|
||||
converted to this interface (sans checkpoint functionality)."""
|
||||
|
||||
Reference in New Issue
Block a user