mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 20:38:19 +08:00
[docs] Fix MLflow / Tune example in documentation (#13740)
Minor fixes to make it runnable
This commit is contained in:
@@ -274,8 +274,8 @@ def mlflow_mixin(func: Callable):
|
||||
@mlflow_mixin
|
||||
def train_fn(config):
|
||||
for i in range(10):
|
||||
loss = self.config["a"] + self.config["b"]
|
||||
mlflow.log_metric(key="loss", value=loss})
|
||||
loss = config["a"] + config["b"]
|
||||
mlflow.log_metric(key="loss", value=loss)
|
||||
tune.report(loss=loss, done=True)
|
||||
|
||||
tune.run(
|
||||
|
||||
Reference in New Issue
Block a user