-
Notifications
You must be signed in to change notification settings - Fork 905
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
[BUG] cudf.testing methods do not respect tolerances #8646
Labels
bug
Something isn't working
Comments
vyasr
added
bug
Something isn't working
Needs Triage
Need team to review and classify
labels
Jul 2, 2021
rapids-bot bot
pushed a commit
to rapidsai/cuspatial
that referenced
this issue
Jul 2, 2021
…ing (#430) This PR contains three distinct changes required to get cuspatial builds working and tests passing again: 1. RMM switched to rapids-cmake (rapidsai/rmm#800), which requires CMake 3.20.1, so this PR includes the required updates for that. 2. The Arrow upgrade in cudf also moved the location of testing utilities (rapidsai/cudf#7495). Long term cuspatial needs to move away from use of the testing utilities, which are not part of cudf's public API, but we are currently blocked by rapidsai/cudf#8646, so this PR just imports the internal `assert_eq` method as a stopgap to get tests passing. 3. The changes in rapidsai/cudf#8373 altered the way that metadata was propagated to libcudf outputs from previously existing cuDF Python objects. The new code paths require cuspatial to override metadata copying at the GeoDataFrame rather than the GeoColumn level in order to ensure that information about column types is lost in the libcudf round trip and the metadata copying functions are now called on the output DataFrame rather than the input one. This PR supersedes #427, #428, and #429, all of which can now be closed. Authors: - Vyas Ramasubramani (https://github.com/vyasr) - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - AJ Schmidt (https://github.com/ajschmidt8) - Christopher Harris (https://github.com/cwharris) URL: #430
rapids-bot bot
pushed a commit
that referenced
this issue
Jul 9, 2021
Resolves #8646 so that testing equality between different types of frames can be based on approximate rather than exact equality. Note that this is a blocker for packages that need to move away from relying on `cudf.tests.utils` for testing functions, since that module is no longer exposed by `cudf`. Authors: - Vyas Ramasubramani (https://github.com/vyasr) Approvers: - https://github.com/brandon-b-miller - GALI PREM SAGAR (https://github.com/galipremsagar) URL: #8649
rapids-bot bot
pushed a commit
to rapidsai/cuspatial
that referenced
this issue
Jul 21, 2021
As of rapidsai/cudf#7495 the `cudf.tests.utils` module (and in particular the `assert_eq` function) are no longer part of the public API. This PR switches tests to use the public testing functions in the `cudf.testing` subpackage. This PR is currently blocked by #430 and rapidsai/cudf#8646. Authors: - Vyas Ramasubramani (https://github.com/vyasr) Approvers: - Christopher Harris (https://github.com/cwharris) - Paul Taylor (https://github.com/trxcllnt) URL: #431
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
cudf's testing utilities only find two frame-like objects to be equal if they are exactly equal, despite accepting
atol
andrtol
parameters. The problem is that these parameters are ignored bycudf.testing.assert_column_equal
, which simply callslhs.equal(rhs)
.Steps/Code to reproduce bug
Expected behavior
The first assertion should succeed for a sufficiently small value of eps (at least, larger than machine epsilon, depending on what the smallest representable number is in cudf/pandas).
Additional context
Since #7495 removed the
assert_eq
function fromcudf
's public namespace, fixing this problem is a blocker for downstream packages that need to adapt tests to make use of these functions.The text was updated successfully, but these errors were encountered: