We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 764a927 commit 24aa97eCopy full SHA for 24aa97e
release/jobs_tests/workloads/run_simple_tune_job.py
@@ -1,7 +1,7 @@
1
# From https://docs.ray.io/en/latest/tune/index.html
2
3
import ray
4
-from ray import train, tune
+from ray import tune
5
6
7
def objective(step, alpha, beta):
@@ -15,7 +15,7 @@ def training_function(config):
15
# Iterative training function - can be any arbitrary training procedure.
16
intermediate_score = objective(step, alpha, beta)
17
# Feed the score back back to Tune.
18
- train.report(dict(mean_loss=intermediate_score))
+ tune.report(dict(mean_loss=intermediate_score))
19
20
21
ray.init(address="auto")
0 commit comments