HyukjinKwon opened a new pull request, #656: URL: https://github.com/apache/spark-connect-rust/pull/656
### What changes were proposed in this pull request? A follow-up to #650 from its post-merge review. `BinaryClassificationMetrics` bins each partition of its sorted scores, so `BinaryClassificationEvaluator`'s `areaUnderROC` and `areaUnderPR` with `numBins=2` depended on how many partitions the server's `local[*]` gave the fixtures' `VALUES`. The fixture's values are what 4 partitions give, as on CI's runners. On a 16-core server, both this client and the official `pyspark-client` 4.3.0 got different values, so `e2e_evaluators.rs` and `test_evaluators_e2e.py` failed there. The capture script and both live tests now read each dataset in one partition, with `coalesce(1)`, and the fixture is recaptured from the official client. The two binned cases change (`areaUnderROC` 0.7778 → 0.8889, `areaUnderPR` 0.8949 → 0.9487). Eight others change in their last bit, from the order of aggregation, well within the tests' 1e-10 tolerance. The classes, inputs, datasets and case names are unchanged. ### Why are the changes needed? So that the evaluator live tests pass on any server, not only on one with 4 cores. ### Does this PR introduce _any_ user-facing change? No. Tests only. ### How was this patch tested? Against a 16-core Spark 4.3.0 Connect server, where the old fixture failed: - `e2e_evaluators` and `evaluators_golden`: 5 passed. - `test_evaluators_e2e.py` and `test_evaluators_offline.py`: 220 passed. - `test_evaluators_e2e.py` with `EVALUATORS_REFERENCE=1` on the official `pyspark-client` 4.3.0: 109 passed. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Opus 5.5 This pull request and its description were written by Isaac. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
