zhengruifeng opened a new pull request, #60299:
URL: https://github.com/apache/spark/pull/60299

   ### What changes were proposed in this pull request?
   
   Add `intermediateStorageLevel` to the decision tree, random forest, and GBT 
classifiers and regressors in Scala and PySpark. Apply it to intermediate 
training data, node-ID caches, and GBT validation and prediction/error caches. 
PySpark accepts the parameter in constructors, `setParams`, and setters.
   
   ### Why are the changes needed?
   
   These estimators create cached RDDs internally, so persisting the input 
DataFrame does not configure their storage. Users can now choose a level such 
as `DISK_ONLY` to reduce memory pressure.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. All six estimators expose `intermediateStorageLevel`. The default 
remains `MEMORY_AND_DISK`; the existing shared validator rejects `NONE` and 
invalid storage levels.
   
   ### How was this patch tested?
   
   - All 104 tests in the six existing Scala estimator suites passed, along 
with source/test style checks and MLlib MiMa.
   - Extended existing Scala tests with simple getter/setter checks and 
existing PySpark tests with constructor, `setParams`, setter, and 
model-parameter checks.
   - All 13 focused classic PySpark, Spark Connect, and Java/Python 
parameter-parity checks passed.
   - A Scala smoke check observed `DISK_ONLY` cached RDDs for all six 
estimators with node caching and checkpointing enabled, including GBT 
validation.
   - Python lint and formatting checks passed.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Codex (GPT-6)
   


-- 
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