Correction in the formula for mean squared error#845
Closed
krishnaw14 wants to merge 5 commits intoaimacode:masteraimacode/aima-python:masterfrom
krishnaw14:masterCopy head branch name to clipboard
Closed
Correction in the formula for mean squared error#845krishnaw14 wants to merge 5 commits intoaimacode:masteraimacode/aima-python:masterfrom krishnaw14:masterCopy head branch name to clipboard
krishnaw14 wants to merge 5 commits intoaimacode:masteraimacode/aima-python:masterfrom
krishnaw14:masterCopy head branch name to clipboard
Conversation
norvig
reviewed
Mar 14, 2018
neural_nets.ipynb
Outdated
| "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", |
Contributor
Author
Collaborator
|
Oops, there are conflicts agin, due to another PR. These are really hard to review for .ipynb |
Contributor
Author
|
Should I send another PR after pulling the latest changes from the repository? @norvig |
Changes from original repo
Contributor
|
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There was a minor error in the formula for mean squared error in neural_nets.ipynb