Github user yanboliang commented on a diff in the pull request:
https://github.com/apache/spark/pull/15212#discussion_r93874587
--- Diff: python/pyspark/ml/feature.py ---
@@ -2629,8 +2629,21 @@ class ChiSqSelector(JavaEstimator, HasFeaturesCol,
HasOutputCol, HasLabelCol, Ja
"""
.. note:: Experimental
- Chi-Squared feature selection, which selects categorical features to
use for predicting a
- categorical label.
+ Creates a ChiSquared feature selector.
+ The selector supports different selection methods: `numTopFeatures`,
`percentile`, `fpr`,
+ `fdr`, `fwe`.
+ `numTopFeatures` chooses a fixed number of top features according to a
chi-squared test.
--- End diff --
Organize following items to make it as a list in the generated API docs,
please refer
https://github.com/apache/spark/blob/master/python/pyspark/ml/regression.py#L1300
---
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]