Python exercise · about 5 minutes · free
Dot Products: Weighted Scores
A linear model is just features times weights, added up. That is a dot product.
X @ w multiplies each row of X by the weights w and sums: one score per row. This is exactly what linear and logistic regression compute inside.
Your quest: Set
scores to X @ w (one score per applicant).Try it now Runs in your browser. No sign-in needed. Ctrl+Enter to run.
Hint
scores = X @ wOutput appears here.