HyukjinKwon opened a new pull request, #693:
URL: https://github.com/apache/spark-connect-rust/pull/693

   ### What changes were proposed in this pull request?
   
   The 18 native feature transformers of `pyspark.ml.connect.feature`, from 
`Binarizer` to `VectorSlicer`, now have the surface of their 
`pyspark.ml.feature` 4.3.0 classes. 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;
   - `transform(dataset, params)`, which transforms with a copy for a non-empty 
param map, as PySpark does;
   - `write`/`save`/`read`/`load`. A loaded transformer keeps the `outputCol` 
default of the uid it was constructed with, as PySpark's `_resetUid` does.
   
   The estimators and their models follow in a separate PR.
   
   ### Why are the changes needed?
   
   For parity with `pyspark.ml.feature` 4.3.0.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. The transformers gain the APIs above. A param map passed to their 
`transform` now applies to a copy, where it used to raise `NO_PARAM_MAP`.
   
   ### How was this patch tested?
   
   - `test_ml_api_offline.py`'s surface check now covers the 18 classes.
   - New cases in `test_feature_api_offline.py` and `test_feature_api_e2e.py` 
compare against a golden captured from official PySpark 4.3.0. The e2e file 
also passes on the official `pyspark-client`.
   - `StopWordsRemover`'s behavior cases are a non-strict xfail for now. Two of 
its defaults, `stopWords` and `locale`, come from the server at construction, 
which a follow-up of the base adds.
   
   ### 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]

Reply via email to