diff options
Diffstat (limited to 'examples/src/main/python/ml/chisq_selector_example.py')
-rw-r--r-- | examples/src/main/python/ml/chisq_selector_example.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/src/main/python/ml/chisq_selector_example.py b/examples/src/main/python/ml/chisq_selector_example.py index 5e19ef1624..028a9ea9d6 100644 --- a/examples/src/main/python/ml/chisq_selector_example.py +++ b/examples/src/main/python/ml/chisq_selector_example.py @@ -39,6 +39,8 @@ if __name__ == "__main__": outputCol="selectedFeatures", labelCol="clicked") result = selector.fit(df).transform(df) + + print("ChiSqSelector output with top %d features selected" % selector.getNumTopFeatures()) result.show() # $example off$ |