diff options
author | Zheng RuiFeng <ruifengz@foxmail.com> | 2017-02-05 19:06:51 -0800 |
---|---|---|
committer | Holden Karau <holden@us.ibm.com> | 2017-02-05 19:06:51 -0800 |
commit | 317fa7508143271bc694afbb425af49378f04cac (patch) | |
tree | 0ad3f28c2355d3cc7a5ddb4612f8b295ec187a6b /python/pyspark/ml | |
parent | b3e89802ae760c196612dd94e37eafeafd059e26 (diff) | |
download | spark-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/pyspark/ml')
-rw-r--r-- | python/pyspark/ml/classification.py | 16 |
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, |