aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorZheng RuiFeng <ruifengz@foxmail.com>2017-02-05 19:06:51 -0800
committerHolden Karau <holden@us.ibm.com>2017-02-05 19:06:51 -0800
commit317fa7508143271bc694afbb425af49378f04cac (patch)
tree0ad3f28c2355d3cc7a5ddb4612f8b295ec187a6b /python
parentb3e89802ae760c196612dd94e37eafeafd059e26 (diff)
downloadspark-317fa7508143271bc694afbb425af49378f04cac.tar.gz
spark-317fa7508143271bc694afbb425af49378f04cac.tar.bz2
spark-317fa7508143271bc694afbb425af49378f04cac.zip
[SPARK-19421][ML][PYSPARK] Remove numClasses and numFeatures methods in LinearSVC
## What changes were proposed in this pull request? Methods `numClasses` and `numFeatures` in LinearSVCModel are already usable by inheriting `JavaClassificationModel` we should not explicitly add them. ## How was this patch tested? existing tests Author: Zheng RuiFeng <ruifengz@foxmail.com> Closes #16727 from zhengruifeng/nits_in_linearSVC.
Diffstat (limited to 'python')
-rw-r--r--python/pyspark/ml/classification.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/python/pyspark/ml/classification.py b/python/pyspark/ml/classification.py
index 69f0cea82e..ac40fceaf8 100644
--- a/python/pyspark/ml/classification.py
+++ b/python/pyspark/ml/classification.py
@@ -172,22 +172,6 @@ class LinearSVCModel(JavaModel, JavaClassificationModel, JavaMLWritable, JavaMLR
"""
return self._call_java("intercept")
- @property
- @since("2.2.0")
- def numClasses(self):
- """
- Number of classes.
- """
- return self._call_java("numClasses")
-
- @property
- @since("2.2.0")
- def numFeatures(self):
- """
- Number of features.
- """
- return self._call_java("numFeatures")
-
@inherit_doc
class LogisticRegression(JavaEstimator, HasFeaturesCol, HasLabelCol, HasPredictionCol, HasMaxIter,