Github user sethah commented on a diff in the pull request:
https://github.com/apache/spark/pull/9936#discussion_r46180761
--- Diff: python/pyspark/ml/classification.py ---
@@ -223,6 +223,14 @@ def intercept(self):
"""
return self._call_java("intercept")
+ @property
+ @since("1.6.0")
+ def numFeatures(self):
+ """
+ The number of features
--- End diff --
"The number of features" -> "The number of features used to train the
model."
I think this is more explicit since, for things like decision trees, this
property is what number of features were used in training and not necessarily
what number of features the model incorporates in its prediction.
Nit: add period to follow docstring convention.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]