Skip to content

Commit c2cfb09

Browse files
committed
Update linear-algebra.md
1 parent 03fed95 commit c2cfb09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter_appendix_math/linear-algebra.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ In a fully machine learned solution, we would learn the threshold from the datas
313313
# Print test set accuracy with eyeballed threshold
314314
w = (ave_1 - ave_0).T
315315
predictions = 1*(X_test.reshape(2000, -1).dot(w.flatten()) > -1500000)
316-
np.mean(predictions==y_test) # Accuracy
316+
np.mean(predictions.astype(y_test.dtype)==y_test, dtype=np.float64) # Accuracy
317317
```
318318

319319
## Geometry of Linear Transformations

0 commit comments

Comments
 (0)