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

   ### What changes were proposed in this pull request?
   
   Add native Rust `GaussianMixture` / `GaussianMixtureModel` training and 
DataFrame prediction, and expose `GaussianMixture` through the Rust-backed 
Python Connect API. Support all nine constructor parameters and named setters, 
with corresponding Rust getters, through the existing cached-model protocol.
   
   Add official-PySpark parameter fixtures at six signed seed/integer-width 
boundaries, live Rust and Python tests, CI registration and compatibility 
documentation.
   
   ### Why are the changes needed?
   
   Extend native clustering support to expectation-maximization Gaussian 
mixtures, including soft component probabilities and instance weights.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. Rust and Rust-backed Python users can fit GaussianMixture and transform 
dense/sparse-vector DataFrames into cluster IDs and component probability 
vectors. The keyword-only constructor matches official PySpark's parameter 
order/defaults and conversions. Unset values remain omitted so the server uses 
its defaults.
   
   The native surface covers construction, setters, fit and DataFrame 
transform. Component means/covariances/weights, training summaries, 
single-vector prediction and persistence are outside its scope.
   
   ### How was this patch tested?
   
   - All 642 Rust library tests pass; every integration test compiles with 
default features and `wasm-udf`.
   - Five Rust live tests pass, including multivariate probabilities, 
independent fitted references, clones/lazy lifetime, session rejection, weights 
and server validation.
   - Golden comparison matches all nine parameters with official PySpark at six 
signed seed/integer-width boundaries.
   - All 14 behavior cases pass with official PySpark, including one- and 
two-dimensional mixtures, sparse/dense inputs, two/three components, normalized 
probabilities, weights, seeded reproducibility, independent fits, disabled 
probabilities and invalid inputs. The native extension passes those same cases 
and two shared ownership/session tests (16 passed).
   - Native Python offline suites: 2,085 passed, 8 skipped and 14 subtests 
passed.
   - The constructor and nine named setters match official PySpark. The 
12-class SQL API introspection diff has zero missing public members.
   - Official Spark 4.3 Connect transport suite: 2,638 passed, 589 skipped 
across 87 files; zero unexpected failures.
   - Rust formatting, Ruff lint/format, Ruff exclusion and whitespace checks 
pass. Clippy passes for the core library and new test targets. Workspace and 
Python-wrapper Clippy report errors on unchanged source lines; none of the 
reported primary error sites was introduced by this patch.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Codex (GPT-6)
   
   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