Skip to content

Commit 08ec1af

Browse files
committed
[SPARK-7572] [MLLIB] do not import Param/Params under pyspark.ml
Remove `Param` and `Params` from `pyspark.ml` and add a section in the doc. brkyvz Author: Xiangrui Meng <[email protected]> Closes #6094 from mengxr/SPARK-7572 and squashes the following commits: 022abd6 [Xiangrui Meng] do not import Param/Params under spark.ml (cherry picked from commit 77f64c7) Signed-off-by: Xiangrui Meng <[email protected]>
1 parent bb81b15 commit 08ec1af

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

python/docs/pyspark.ml.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
pyspark.ml package
22
=====================
33

4-
Module Context
4+
ML Pipeline APIs
55
--------------
66

77
.. automodule:: pyspark.ml
88
:members:
99
:undoc-members:
1010
:inherited-members:
1111

12+
pyspark.ml.param module
13+
-------------------------
14+
15+
.. automodule:: pyspark.ml.param
16+
:members:
17+
:undoc-members:
18+
:inherited-members:
19+
1220
pyspark.ml.feature module
1321
-------------------------
1422

python/pyspark/ml/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# limitations under the License.
1616
#
1717

18-
from pyspark.ml.param import *
19-
from pyspark.ml.pipeline import *
18+
from pyspark.ml.pipeline import Transformer, Estimator, Model, Pipeline, PipelineModel, Evaluator
2019

21-
__all__ = ["Param", "Params", "Transformer", "Estimator", "Pipeline"]
20+
__all__ = ["Transformer", "Estimator", "Model", "Pipeline", "PipelineModel", "Evaluator"]

python/pyspark/ml/pipeline.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
from pyspark.mllib.common import inherit_doc
2323

2424

25-
__all__ = ['Estimator', 'Transformer', 'Pipeline', 'PipelineModel', 'Evaluator', 'Model']
26-
27-
2825
@inherit_doc
2926
class Estimator(Params):
3027
"""

0 commit comments

Comments
 (0)