From 49323a6d3207e7d4c6b04ab3c3b1729d9eeaca16 Mon Sep 17 00:00:00 2001 From: hyukjinkwon Date: Sat, 2 Jun 2018 12:07:20 +0800 Subject: [PATCH] Imports submodule in ml/__init__.py and add ImageSchema into __all__ --- python/pyspark/ml/__init__.py | 8 +++++++- python/pyspark/ml/image.py | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/python/pyspark/ml/__init__.py b/python/pyspark/ml/__init__.py index 129d7d68f7cbb..1f7f6aec1e7cc 100644 --- a/python/pyspark/ml/__init__.py +++ b/python/pyspark/ml/__init__.py @@ -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", + "image", "pipeline", "recommendation", "regression", "stat", "tuning", "util", +] diff --git a/python/pyspark/ml/image.py b/python/pyspark/ml/image.py index 96d702f844839..5f0c57ee3cc67 100644 --- a/python/pyspark/ml/image.py +++ b/python/pyspark/ml/image.py @@ -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): """