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

   ### What changes were proposed in this pull request?
   
   This PR adds an explicit `estimatedSize` implementation for 
`IsotonicRegressionModel`. It accounts for model metadata and the legacy 
model's boundary and prediction arrays.
   
   ### Why are the changes needed?
   
   ML Connect cache accounting needs a bounded, model-specific estimate of the 
state retained by `IsotonicRegressionModel`, rather than relying on generic 
object-graph traversal.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Added a focused `IsotonicRegressionSuite` assertion that verifies the 
estimate includes metadata and both learned arrays. The suite is running 
locally with:
   
   ```
   build/sbt -java-home /usr/lib/jvm/java-17-openjdk-amd64 'mllib/testOnly 
*IsotonicRegressionSuite'
   ```
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Codex (GPT-5)


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