Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion python/pyspark/ml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,11 @@
"""
from pyspark.ml.base import Estimator, Model, Transformer, UnaryTransformer
from pyspark.ml.pipeline import Pipeline, PipelineModel
from pyspark.ml import classification, clustering, evaluation, feature, fpm, \
image, pipeline, recommendation, regression, stat, tuning, util

__all__ = ["Transformer", "UnaryTransformer", "Estimator", "Model", "Pipeline", "PipelineModel"]
__all__ = [
"Transformer", "UnaryTransformer", "Estimator", "Model", "Pipeline", "PipelineModel",
"base", "classification", "clustering", "evaluation", "feature", "fpm",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

base shouldn't be imported by default

"image", "pipeline", "recommendation", "regression", "stat", "tuning", "util",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should remove pipeline from default imports and add linalg and param. Basically, import public modules listed here: https://spark.apache.org/docs/latest/api/python/index.html.

]
2 changes: 2 additions & 0 deletions python/pyspark/ml/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
from pyspark.sql.types import Row, _create_row, _parse_datatype_json_string
from pyspark.sql import DataFrame, SparkSession

__all__ = ["ImageSchema"]


class _ImageSchema(object):
"""
Expand Down