Skip to content

Commit

Permalink
[SPARK-7572] [MLLIB] do not import Param/Params under pyspark.ml
Browse files Browse the repository at this point in the history
Remove `Param` and `Params` from `pyspark.ml` and add a section in the doc. brkyvz

Author: Xiangrui Meng <[email protected]>

Closes apache#6094 from mengxr/SPARK-7572 and squashes the following commits:

022abd6 [Xiangrui Meng] do not import Param/Params under spark.ml
  • Loading branch information
mengxr authored and jeanlyn committed May 28, 2015
1 parent d4c66ce commit a57a1d0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
10 changes: 9 additions & 1 deletion python/docs/pyspark.ml.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
pyspark.ml package
=====================

Module Context
ML Pipeline APIs
--------------

.. automodule:: pyspark.ml
:members:
:undoc-members:
:inherited-members:

pyspark.ml.param module
-------------------------

.. automodule:: pyspark.ml.param
:members:
:undoc-members:
:inherited-members:

pyspark.ml.feature module
-------------------------

Expand Down
5 changes: 2 additions & 3 deletions python/pyspark/ml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# limitations under the License.
#

from pyspark.ml.param import *
from pyspark.ml.pipeline import *
from pyspark.ml.pipeline import Transformer, Estimator, Model, Pipeline, PipelineModel, Evaluator

__all__ = ["Param", "Params", "Transformer", "Estimator", "Pipeline"]
__all__ = ["Transformer", "Estimator", "Model", "Pipeline", "PipelineModel", "Evaluator"]
3 changes: 0 additions & 3 deletions python/pyspark/ml/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
from pyspark.mllib.common import inherit_doc


__all__ = ['Estimator', 'Transformer', 'Pipeline', 'PipelineModel', 'Evaluator', 'Model']


@inherit_doc
class Estimator(Params):
"""
Expand Down

0 comments on commit a57a1d0

Please sign in to comment.