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

[PYTHON] Improve equality wrapper #567

Merged
merged 1 commit into from
Oct 19, 2017
Merged

Conversation

wweic
Copy link
Contributor

@wweic wweic commented Oct 19, 2017

use object.__eq__(default object identity comparison) as default
implementation of same_as. This should be OK since EqualOp and
NotEqualOp are pure Python object, object.__eq__ is sufficient.

use `object.__eq__`(default object identity comparison) as default
implementation of same_as. This should be OK since `EqualOp` and
`NotEqualOp` are pure Python object, `object.__eq__` is sufficient.
@wweic
Copy link
Contributor Author

wweic commented Oct 19, 2017

I believe this is a transient failure, the same failure happened for another commit. Please retry the Jenkins build.

@wweic
Copy link
Contributor Author

wweic commented Oct 19, 2017

Interesting. Looking at the failure fixed by a retry, the mismatch rate is 0.0108506944444

For my error, the mismatch rate is 0.00542534722223 (which is half of 0.0108506944444).

@tqchen
Copy link
Member

tqchen commented Oct 19, 2017

@sxjscience can you check if argmin's impl have some potential issue? It could also due to ties and undefined behavior

@tqchen tqchen merged commit ab858e3 into apache:master Oct 19, 2017
@wweic wweic deleted the improve-equal branch October 19, 2017 05:23
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.

2 participants