mirror of
https://github.com/wassname/ray.git
synced 2026-08-12 12:20:11 +08:00
clean up imports (#230)
This commit is contained in:
committed by
Philipp Moritz
parent
191909dd93
commit
5dd411546d
@@ -1,6 +1,5 @@
|
||||
import numpy as np
|
||||
import ray
|
||||
import ray.services as services
|
||||
import os
|
||||
|
||||
import functions
|
||||
@@ -11,7 +10,7 @@ epochs = 100
|
||||
|
||||
worker_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
worker_path = os.path.join(worker_dir, "worker.py")
|
||||
services.start_ray_local(num_workers=num_workers, worker_path=worker_path)
|
||||
ray.services.start_ray_local(num_workers=num_workers, worker_path=worker_path)
|
||||
|
||||
best_params = None
|
||||
best_accuracy = 0
|
||||
|
||||
Reference in New Issue
Block a user