Skip to content
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

Merged
merged 2 commits into from
Sep 7, 2017

Conversation

concretevitamin
Copy link
Member

@jey @robertnishihara feel free to push back on this if you don't agree with the updated wordings.

@@ -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",
Copy link
Contributor

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",
Copy link
Contributor

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",
Copy link
Contributor

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",
Copy link
Contributor

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

@concretevitamin
Copy link
Member Author

All done. The incomplete docstrings were not intentional :-p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants