HyukjinKwon opened a new pull request, #692: URL: https://github.com/apache/spark-connect-rust/pull/692
### What changes were proposed in this pull request? The six native evaluators of `pyspark.ml.connect.evaluation` now have the surface of `pyspark.ml.evaluation` 4.3.0. They use the base's `native_pymethods!`, with their rows from `scripts/gen_native_params_table.py`, and gain: - keyword-only constructors and `setParams`; - every getter and setter; - PySpark's Params API; - `evaluate(dataset, params)`, which evaluates a copy for a non-empty param map, as PySpark does; - `write`/`save`/`read`/`load`, which keep the uid and the params. ### Why are the changes needed? For parity with `pyspark.ml.evaluation` 4.3.0. ### Does this PR introduce _any_ user-facing change? Yes. The evaluators gain the APIs above. `evaluate` with a param map keyed by name now raises PySpark's error, where it used to raise `NO_PARAM_MAP`. ### How was this patch tested? - `test_ml_api_offline.py`'s surface check now covers the six classes. - New cases in `test_evaluation_api_offline.py` and `test_evaluation_api_e2e.py` compare against a golden captured from official PySpark 4.3.0. The e2e file also passes on the official `pyspark-client`. ### 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]
