-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix discrepancy with pythonic results #46
Comments
After f9b0719, I began to benchmark results of the I spent around 12 hours straight last night, and into the wee hours, looking for the source of this discrepancy. Upon inspection (results pushed in 3e9be4a), here is what I found:
The former corrections I made did not change the results much. However, the last correction I am still unsure of. One way to test that the procedure of algorithms (comparing Python to Julia) are the same is to simply test how many features it finds. Python found 2429 features for the standard test set, but Julia found 4520. Upon further inspection, the way I can fix this discrepancy is to change the However, even when the number of features obtained are the same, the results are different. They are not hugely different — as I say, both algorithms work. But they are different. As it doesn't make sense for Julia to index from zero, I have kept the inner-most loops in One thing to note, which I found, was that Python reads directories seemingly randomly, where Julia reads directories alphabetically. I am unsure if this explains the persisting discrepancy, but it seems to change the results from obtaining the The question now is two-fold:
|
[ef4015fe] There was another copy error, which changed results: # Previous results
Faces: 312/472 (66.10169491525424% of faces were recognised as faces)
Non-faces 12894/19572 (65.87982832618026% of non-faces were identified as non-faces)
# After fixing copy error
Faces: 235/472 (49.78813559322034% of faces were recognised as faces)
Non-faces 15457/19572 (78.97506642141835% of non-faces were identified as non-faces) |
There is a discrepancy in results of this algorithm compared to the Pythonic one. Both algorithms work, but produce different results.
The text was updated successfully, but these errors were encountered: