mirror of
https://github.com/wassname/ray.git
synced 2026-09-09 11:32:43 +08:00
make services.cleanup happen automatically (#224)
This commit is contained in:
committed by
Philipp Moritz
parent
63f7548763
commit
8e6b7929d6
@@ -36,4 +36,3 @@ for i in range(samples):
|
||||
print "Best parameters are now {}.".format(params)
|
||||
|
||||
print "Best parameters over {} samples was {}, with an accuracy of {:.4}%.".format(samples, best_params, 100 * best_accuracy)
|
||||
services.cleanup()
|
||||
|
||||
@@ -34,5 +34,3 @@ if __name__ == "__main__":
|
||||
if args.drop_ipython:
|
||||
import IPython
|
||||
IPython.embed()
|
||||
|
||||
services.cleanup()
|
||||
|
||||
@@ -50,5 +50,3 @@ if __name__ == "__main__":
|
||||
result = scipy.optimize.fmin_l_bfgs_b(full_loss, theta_init, maxiter=10, fprime=full_grad, disp=True)
|
||||
end_time = time.time()
|
||||
print "Elapsed time = {}".format(end_time - start_time)
|
||||
|
||||
services.cleanup()
|
||||
|
||||
Reference in New Issue
Block a user