HyukjinKwon opened a new pull request, #715: URL: https://github.com/apache/spark-connect-rust/pull/715
### What changes were proposed in this pull request? `pyspark.ml.connect.evaluation` now exports PySpark's own `pyspark.ml.evaluation.Evaluator`, the base class of the six native evaluators. Its `__all__` now equals that of `pyspark.ml.evaluation`, the same way `pyspark.ml.connect.tuning` exports PySpark's `ParamGridBuilder`. The package-level `pyspark.ml.connect.Evaluator` stays the deprecated `pyspark.ml.connect.base` class, as in PySpark's deprecated package. It also updates the ML sections of `docs/compatibility.md` that have gone stale: - every class now follows `pyspark.ml` in full; - every native class takes a param map; - the native Pipeline and validators aren't placeholders anymore; - `assignClusters` sends a non-DataFrame dataset; - NaiveBayes and the OneVsRest submodels are typed. ### Why are the changes needed? `Evaluator` was the one name of a `pyspark.ml` module's `__all__` that the native modules lacked, and the docs described work that has since been completed. ### Does this PR introduce _any_ user-facing change? Yes: `from pyspark.ml.connect.evaluation import Evaluator` now works. ### How was this patch tested? A new test in `test_evaluation_api_offline.py` checks the exported class, the module's `__all__`, and that each native evaluator is its subclass. The ML offline suites and the evaluator live suites also pass. ### 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]
