purijatin commented on a change in pull request #23549: [SPARK-26616][MLlib]
Expose document frequency in IDFModel
URL: https://github.com/apache/spark/pull/23549#discussion_r248184543
##########
File path: mllib/src/main/scala/org/apache/spark/ml/feature/IDF.scala
##########
@@ -151,6 +151,15 @@ class IDFModel private[ml] (
@Since("2.0.0")
def idf: Vector = idfModel.idf.asML
+ /** Returns the DF */
+ @Since("3.0.0")
+ def df: Array[Long] = idfModel.df
Review comment:
Renamed it as `docFreq`. Thanks.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]