Created
August 29, 2020 16:20
-
-
Save PyDataBlog/3d7b3d7cf1c4fc83ab4e3deb4987c35e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Check the accuracy between predicted values (Ŷ) and the true values(Y). | |
| """ | |
| function assess_accuracy(Ŷ , Y) | |
| @assert size(Ŷ) == size(Y) | |
| return sum((Ŷ .> 0.5) .== Y) / length(Y) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment