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

   ### What changes were proposed in this pull request?
   
   Add the three remaining native regression estimators, AFTSurvivalRegression, 
IsotonicRegression and FMRegressor, in the Rust API and Rust-backed Python 
client. All eight PySpark 4.3.0 regression estimators now support native 
fitting and DataFrame transforms.
   
   - AFT supports censoring, an optional intercept and quantile output, with 
all 11 constructor parameters and named setters.
   - Isotonic supports scalar features or a selected vector component, instance 
weights and increasing/decreasing regression, with all six constructor 
parameters and named setters.
   - FM supports interaction, linear and intercept terms, both `adamW` and 
`gd`, and all 14 constructor parameters and named setters.
   
   The implementations use the existing Spark Connect fit command and 
cached-model ownership path. Add official parameter/numerical fixtures, Rust 
and Python tests, CI coverage and compatibility documentation. Exclude 
asynchronous model deletions from the existing label-validation test's request 
count.
   
   ### Why are the changes needed?
   
   These are the remaining missing native regression estimators. Users can now 
fit them through either the Rust API or the Rust-backed Python API.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. The estimators are available under `spark_connect::ml`, 
`pyspark.ml.connect.regression` and the `pyspark.ml.connect` re-exports. Python 
constructors preserve official PySpark's parameter order, defaults and type 
conversions.
   
   This covers construction, parameter setters, fitting and DataFrame 
transforms. Python returns the common `MLModel`; specialized model inspection, 
single-instance prediction and persistence remain outside these native wrappers.
   
   ### How was this patch tested?
   
   - 673 Rust unit tests, four live regression tests, and a golden test 
covering six official parameter fixtures passed.
   - All 36 regression behavior cases passed with both official PySpark 4.3.0 
and the native Python client; two additional shared model lifetime/session 
tests passed with the native client.
   - 2,118 Python offline tests passed (8 skipped), including parameter 
conversion, constructor signatures and wire-format checks.
   - All Rust integration tests compiled, including the WASM configuration. 
Rust formatting and Python lint/format checks passed. Core Clippy passed; 
workspace Clippy reports pre-existing errors, with no new warning or error 
sites introduced.
   - Public SQL API comparison found no gaps across 12 classes, excluding the 
documented transport internals. All three new constructor signatures and named 
setter sets match official PySpark.
   - Official Spark 4.3.0 Connect suite through the Rust transport: 2,638 
passed, 589 skipped across 87 files, with zero unexpected failures, using 
local[4] and Spark's default shuffle setting. The three artifact/local-cluster 
test files require a separate cluster environment and were excluded.
   
   ### 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