We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the notebook, you have:
def perceptron_trick(weights, bias, features, label, learning_rate = 0.01): pred = prediction(weights, bias, features) for i in range(len(weights)): weights[i] += (label-pred)*features[i]*learning_rate bias += (label-pred)*learning_rate return weights, bias
but in the book, the bias is not done for each iteration of the loop:
Unfortunately, this leads to different numbers than those that are published in the book
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the notebook, you have:
but in the book, the bias is not done for each iteration of the loop:
Unfortunately, this leads to different numbers than those that are published in the book
The text was updated successfully, but these errors were encountered: