HyukjinKwon opened a new pull request, #741: URL: https://github.com/apache/spark-connect-rust/pull/741
### What changes were proposed in this pull request? `test_ml_api_e2e.py::test_objects_of_this_client_are_of_the_classes_of_pyspark_mls_modules` fits a CrossValidator with no seed and `numFolds=2` over 12 rows of the labels 0 and 1. A validator with no seed draws a random one (PySpark's default seed, the hash of the class name, differs between processes). Some seeds give a fold of a single label: seed 2 does, among 0 to 11. That fold's LogisticRegression model then has one class, and BinaryClassificationEvaluator refuses its one-length rawPrediction (`rawPredictionCol vectors must have length=2, but got 1`). This failed the Connect parity job of #729 (forked-0a found it). The validator now has `seed=1`, whose folds hold 3 rows of each label. ### Why are the changes needed? To remove a flake from CI. ### Does this PR introduce _any_ user-facing change? No, test only. ### How was this patch tested? A probe of the folds of `rand(seed)` for the seeds 0 to 11 on the test's data: seed 2 gives a fold without label 1.0, and seed 1 gives balanced folds. The test passes with seed 1 on this client and on official pyspark-client 4.3.0, against a Spark 4.3.0 Connect server. ### 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]
