mirror of
https://github.com/wassname/ray.git
synced 2026-08-12 12:20:11 +08:00
Update documentation (#445)
* Update documentation for serialization. * Update documentation for reusable variables. * Update documentation for using Ray with TensorFlow. This change is to allow code blocks to be copied and pasted into a Python interpreter. * Fix documentation for hyperparameter optimization example.
This commit is contained in:
committed by
Philipp Moritz
parent
c6ec36865d
commit
1c3aaf7189
@@ -140,7 +140,7 @@ remaining_ids = []
|
||||
for _ in range(100):
|
||||
params = generate_random_params()
|
||||
accuracy_id = train_cnn_and_compute_accuracy.remote(randparams, train_images, train_labels, validation_images, validation_labels)
|
||||
result_ids.append(accuracy_id)
|
||||
remaining_ids.append(accuracy_id)
|
||||
|
||||
# Process the tasks one at a time.
|
||||
while len(remaining_ids) > 0:
|
||||
@@ -151,6 +151,9 @@ while len(remaining_ids) > 0:
|
||||
print "Accuracy {}".format(accuracy)
|
||||
```
|
||||
|
||||
Note that the above example does not associate the accuracy with the parameters
|
||||
that produced that accuracy, but this is done in the actual script.
|
||||
|
||||
## Additional notes
|
||||
|
||||
**Early Stopping:** Sometimes when running an optimization, it is clear early on
|
||||
|
||||
Reference in New Issue
Block a user