You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/08/20 06:16:16 UTC
[GitHub] [spark] purijatin commented on a change in pull request #29482: [SPARK-32662][MLLib] CountVectorizerModel: Remove requirement for minimum Vocab size
purijatin commented on a change in pull request #29482:
URL: https://github.com/apache/spark/pull/29482#discussion_r473636976
##########
File path: mllib/src/main/scala/org/apache/spark/ml/feature/CountVectorizer.scala
##########
@@ -241,7 +241,6 @@ class CountVectorizer @Since("1.5.0") (@Since("1.5.0") override val uid: String)
}
wordCounts.unpersist()
- require(vocab.length > 0, "The vocabulary size should be > 0. Lower minDF as necessary.")
Review comment:
Thanks for the comment. What is the appropriate log level for this? Warn?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org