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

   ### What changes were proposed in this pull request?
   
   The Rust feature models gain the members of their PySpark classes. They read 
them from the server-side model, as PySpark does over Spark Connect:
   - the attributes of the 20 model classes, such as `vocabulary`, `idf`, `pc` 
and `category_maps`;
   - the LSH models' `approx_nearest_neighbors` and `approx_similarity_join`, 
and Word2Vec's `get_vectors` and `find_synonyms`;
   - `CountVectorizerModel::from_vocabulary`, and 
`StringIndexerModel::from_labels` and `from_arrays_of_labels`;
   - `QuantileDiscretizer::fit_bucketizer`, which gives the `Bucketizer` of the 
fitted splits, as PySpark's `fit` does.
   
   Every feature transformer, estimator and model saves with `write()` and 
loads with `load(session, path)`.
   
   ### Why are the changes needed?
   
   For parity with `pyspark.ml.feature` 4.3.0.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, new Rust APIs. Each feature estimator's inherent `fit` now returns its 
typed model; the `Estimator` trait's `fit` still returns `Box<dyn Model>`.
   
   ### How was this patch tested?
   
   `scripts/capture_feature_models_golden.py` captures a golden from official 
PySpark 4.3.0. It holds 26 fits, the members of every model and of its 
saved-and-loaded copy, 6 class-method cases, and the save and load of all 74 
stages, models and estimators. The new `e2e_feature_models.rs` compares all of 
it live.
   
   ### 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