-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Correction in the formula for mean squared error #845
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
Conversation
neural_nets.ipynb
Outdated
@@ -82,7 +82,7 @@ | |||
"\n", | |||
"In both the Perceptron and the Neural Network, we are using the Backpropagation algorithm to train our weights. Basically it achieves that by propagating the errors from our last layer into our first layer, this is why it is called Backpropagation. In order to use Backpropagation, we need a cost function. This function is responsible for indicating how good our neural network is for a given example. One common cost function is the *Mean Squared Error* (MSE). This cost function has the following format:\n", | |||
"\n", | |||
"$$MSE=\\frac{1}{2} \\sum_{i=1}^{n}(y - \\hat{y})^{2}$$\n", | |||
"$$MSE=\\frac{1}{2n} \\sum_{i=1}^{n}(y - \\hat{y})^{2}$$\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 \frac{1}{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.
Oops, there are conflicts agin, due to another PR. These are really hard to review for .ipynb |
Should I send another PR after pulling the latest changes from the repository? @norvig |
Changes from original repo
This PR contains duplicated changes. It will be easier if you close this PR, update your working directory, create a new branch and open a fresh pull request. Be sure to make a branch before you commit changes. The master branch is for updating the local directory from the upstream repo. |
Bringing up to date with original repo
There was a minor error in the formula for mean squared error in neural_nets.ipynb