-
Notifications
You must be signed in to change notification settings - Fork 368
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
Possibly some typos in the book #47
Comments
Hi @Patrick-Wen, Thank you for reporting this. You're absolutely right, it should be "C-1" instead of "Nc-1" in the upper part of the summation. I will fix it in the notebook and add to the list of typos to be addressed in a future revision. Thanks for supporting my work :-) Best, |
Hi @Patrick-Wen, Thank you for pointing out these issues and for asking these questions, let me go through all of them:
Hope it helps, and thank you for supporting my work :-) |
The first two issues are restricted to code in the book, everything is fine with the full script in GitHub. Issue four exists both in the book and full script in GitHub. |
Hi @Patrick-Wen , Thank you for pointing those out. Regarding item number 3, I was referring to the fact of "padding and truncating" because it is the same procedure even if we're using a different max length. I'm not an native speaker either, but the proofreader said it was fine so I kept it like that :-) Regarding item number 4, I've just run Chapter 11's notebook on Colab and I did not get that error. For some reason, it looks like the following code (from page 894) was not executed on your end: def is_alice_label(row):
is_alice = int(row['source'] == 'alice28-1476.txt')
return {'labels': is_alice}
dataset = dataset.map(is_alice_label) The code creates the missing Best, |
Hi Daniel, My fault for missing the is_alice_label function. Thank you for the information. Best regards, |
Here is Eq 5.6 in the book:
It is stated that "C stands for the number of classes". I think the Nc, which represents the number of cases in the cth class, should be replaced by C. Nc is simply irrelevant here since softmax is calucated per individual.
Please correct me if I am wrong. Thank you.
Patrick Wen
The text was updated successfully, but these errors were encountered: