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

[issue 2685] - fixing mistake in book #200

Merged

Conversation

juliangamble
Copy link
Contributor

Note the issue here when working through the book examples:
deepjavalibrary/djl#2685

This fixes it.

@juliangamble juliangamble requested review from zachgk, frankfliu, lanking520 and a team as code owners July 3, 2023 11:26
@@ -97,7 +97,9 @@
"// Generate y = X w + b + noise\n",
"public DataPoints syntheticData(NDManager manager, NDArray w, float b, int numExamples) {\n",
" NDArray X = manager.randomNormal(new Shape(numExamples, w.size()));\n",
" NDArray y = X.dot(w).add(b);\n",
" //NDArray y = X.dot(w).add(b);\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment doesn't provide more information, suggest just remove it.

@frankfliu frankfliu merged commit 986dc9b into deepjavalibrary:master Jul 4, 2023
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.

3 participants