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

   ### What changes were proposed in this pull request?
   
   This PR updates `KMeansModel`, `BisectingKMeansModel`, and 
`GaussianMixtureModel` size estimates to include their parameter metadata in 
addition to learned clustering state.
   
   ### Why are the changes needed?
   
   These models override the default estimator and previously omitted their 
parameter-map and UID metadata. Counting this metadata makes their cache 
accounting consistent with other Spark ML models.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Added one fitted-model upper-bound size-estimation test in each model's 
existing clustering suite.
   
   Also ran `git diff --check`, ASCII, and source-line-length checks.
   
   ### 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