Github user jkbradley commented on a diff in the pull request: https://github.com/apache/spark/pull/17218#discussion_r108054236 --- Diff: python/pyspark/ml/fpm.py --- @@ -25,23 +25,21 @@ class HasSupport(Params): """ - Mixin for param support: [0.0, 1.0]. + Mixin for param support. """ minSupport = Param( Params._dummy(), "minSupport", - "Minimal support level of the frequent pattern. [0.0, 1.0]. Any pattern that appears more " - "than (minSupport * size-of-the-dataset) times will be output", + """Minimal support level of the frequent pattern. [0.0, 1.0]. + Any pattern that appears more than (minSupport * size-of-the-dataset) + times will be output""", typeConverter=TypeConverters.toFloat) def setMinSupport(self, value): """ Sets the value of :py:attr:`minSupport`. """ - if not (0 <= value <= 1): - raise ValueError("Support must be in range [0, 1]") - return self._set(minSupport=value) --- End diff -- This removed too much! This line should remain
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org