-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Ray's exercise10.ipynb: clarifications, fixes, typos. #40
Conversation
@@ -136,15 +138,20 @@ | |||
" \"\"\"Set the neural net weights.\n", | |||
" \n", | |||
" This method should assign the given weights to the neural net.\n", | |||
" \n", | |||
" Args:\n", | |||
" weights: a dict of `numpy.ndarray` objects (or a list of `num`.\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be either a dictionary of numpy arrays or a single numpy array.
" This method should return the current neural net weights.\n", | ||
" \n", | ||
" Returns:\n", | ||
" A dict mapping strings (variables' names) to `numpy.ndarray` objects.\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be either a dictionary of numpy arrays or a single numpy array.
@@ -45,6 +45,7 @@ | |||
"# Here 'weights' is a dictionary mapping variable names to the associated\n", | |||
"# weights as a numpy array.\n", | |||
"weights = variables.get_weights()\n", | |||
"# ...Perhaps some updates on `weights`...\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use 'weights'
for consistency with line 45
@@ -54,10 +55,11 @@ | |||
"# Here 'weights' is a numpy array of all of the neural net weights\n", | |||
"# concatenated together.\n", | |||
"weights = variables.get_flat()\n", | |||
"# ...Perhaps some updates on `weights`...\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use 'weights'
for consistency with line 55
All done. The incomplete docstrings were not intentional :-p |
@jey @robertnishihara feel free to push back on this if you don't agree with the updated wordings.