srowen commented on a change in pull request #25671: [SPARK-28968][ML] Add 
HasNumFeatures in the scala side
URL: https://github.com/apache/spark/pull/25671#discussion_r320764507
 
 

 ##########
 File path: python/pyspark/ml/param/shared.py
 ##########
 @@ -288,6 +288,7 @@ class HasNumFeatures(Params):
 
     def __init__(self):
         super(HasNumFeatures, self).__init__()
+        self._setDefault(numFeatures=1 << 18)
 
 Review comment:
   Do we need a Python default if it's set in Scala?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to