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

   ### What changes were proposed in this pull request?
   
   Add native `GBTRegressor` / `GBTRegressionModel` fit and DataFrame 
prediction to the Rust client, and expose `GBTRegressor` through the 
Rust-backed Python Connect API. Support all 22 constructor parameters, Rust 
setters/getters, and PySpark's 21 named Python setters. Reuse the cached-model 
ownership and session checks of the existing native estimators.
   
   ### Why are the changes needed?
   
   Continue native tree-ensemble support after GBTClassifier, allowing Rust and 
Rust-backed Python clients to train gradient-boosted regression trees with 
squared or absolute loss.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. Users can fit GBTRegressor and produce predictions and optional 
per-tree leaf vectors. Tests cover continuous nonlinear targets, instance 
weights, sampling, learning rate, both losses, validation early stopping, 
parameter errors, and lazy prediction/model lifetime.
   
   The Python constructor matches upstream's `validationTol=0.1` signature and 
preserves upstream's behavior: omitting it sends no value, so the server uses 
`0.01`; explicitly passing `0.1` sends `0.1`. Model inspection, per-iteration 
evaluation, single-vector prediction and persistence remain outside this native 
API's scope.
   
   ### How was this patch tested?
   
   - All 628 Rust library tests pass; every integration test compiles with 
default features and with `wasm-udf`.
   - Six live Rust GBTRegressor tests and the official-PySpark golden parameter 
comparison pass, including six signed/integer-width seed cases.
   - All eight new behavior cases pass with official PySpark. The same cases 
and two shared model ownership/session tests pass with the native Python 
extension (10 passed).
   - Native Python offline suites: 2,044 passed, 8 skipped, 14 subtests passed.
   - Constructor parameter order/defaults and 21 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 checks, Ruff exclusion checks and 
whitespace checks pass. Clippy passes for the core library and new test 
targets. Workspace and Python-wrapper Clippy still report errors at unchanged 
source sites; no error's primary source 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