mirror of
https://github.com/GokuMohandas/Made-With-ML.git
synced 2026-03-09 07:12:37 -05:00
Foundations --> Logistic regression feedback/errors #28
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gitgithan on GitHub (Oct 17, 2021).
Webpage says W dimension is Dx1 but notebook says DxC. Prefer webpage to also show DxC to expose people to the more general multi-class W
Two errors causing notebook to not run top-down
a. Extra single quote behind k:
plt.scatter(X[:, 0], X[:, 1], c=[colors[_y] for _y in y], s=25, edgecolors="k"')b. SyntaxError: Double quotes to index dictionary early closing double quotes for f-string (happens in 2 cells)
print (f"m:b = {class_counts["malignant"]/class_counts["benign"]:.2f}")Hope the matrix calculus section had more explanation, feels to me like for people who understand it, they won't need the formulas, but for people who don't understand, it doesn't help much.
Some questions I had going through that section.
How did
db = np.sum(dscores, axis=0, keepdims=True)implementation come about? Was expecting a formula version describing gradient wrt bias but previous it's mentionedWe'll leave the bias weights out for now to avoid complicating the backpropagation calculationW_{unscaled}includes sum in formula which it shouldn't?@GokuMohandas commented on GitHub (Oct 18, 2021):
I really appreciate these @gitgithan!