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

   ### What changes were proposed in this pull request?
   
   This PR changes `org.apache.spark.ml.feature.IDFModel` to store its IDF 
vector, document
   frequency array, and document count directly instead of wrapping an
   `org.apache.spark.mllib.feature.IDFModel`.
   
   It also updates model fitting, copying, size estimation, transformation, and 
persistence to use
   the directly stored fields.
   
   ### Why are the changes needed?
   
   The ML model only needs the three underlying values from the legacy MLlib 
model. Storing those
   values directly removes the unnecessary model wrapper and keeps the ML model 
state self-contained.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   The following focused suite passes with 6 tests:
   
   ```
   build/sbt 'mllib/testOnly org.apache.spark.ml.feature.IDFSuite'
   ```
   
   ### 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