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:
Robert Nishihara
2016-10-12 15:41:00 -07:00
committed by Philipp Moritz
parent c6ec36865d
commit 1c3aaf7189
4 changed files with 66 additions and 53 deletions
+4 -1
View File
@@ -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