Skip to content
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: predictDraw should give same result as python #642

Merged
merged 6 commits into from
Jul 31, 2024
Merged

Conversation

philihp
Copy link
Owner

@philihp philihp commented Jul 24, 2024

I think maybe #611 didn't exactly get us there. This creates some tests pulled from #599 and from https://openskill.me, and the Javascript library should give the same result.

@vivekjoshy
Copy link
Collaborator

vivekjoshy commented Jul 25, 2024

@philihp lots of things have changed since v5.1.1 btw, for instance, predict_draw no longer ranges between 0 and 1, but between 0 and 0.5 to make it obvious that the variance is taken into account. Weights is also implemented now for rate. I was going to make an issue on this repo, but might as well comment here now.

@philihp
Copy link
Owner Author

philihp commented Jul 25, 2024

Thanks! Yeah I was looking at the Python code and it looks like a lot has changed.

@philihp
Copy link
Owner Author

philihp commented Jul 26, 2024

I'm seeing that you have predict functions attached to the model. Do you anticipate they'll be different?

@vivekjoshy
Copy link
Collaborator

No, that was done when I was considering adding other models. It actually does not make sense anymore. I will have to get around to changing it back to the way it was before, but for now it's easier to test things this way.

@philihp philihp force-pushed the predict-draw-parity branch from 02f5535 to 5cd160e Compare July 30, 2024 19:50
@coveralls
Copy link

coveralls commented Jul 30, 2024

Coverage Status

coverage: 100.0%. remained the same
when pulling fac4c53 on predict-draw-parity
into 6973ba1 on main.

@philihp philihp merged commit da4d3cd into main Jul 31, 2024
5 checks passed
@philihp philihp deleted the predict-draw-parity branch July 31, 2024 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants