[SPARK-13814] [PYSPARK] Delete unnecessary imports in python examples files
JIRA: https://issues.apache.org/jira/browse/SPARK-13814 ## What changes were proposed in this pull request? delete unnecessary imports in python examples files ## How was this patch tested? manual tests Author: Zheng RuiFeng <ruifengz@foxmail.com> Closes #11651 from zhengruifeng/del_import_pe.
This commit is contained in:
parent
073bf9d4d9
commit
42afd72c65
|
@ -21,8 +21,6 @@ from pyspark import SparkContext
|
|||
from pyspark.sql import SQLContext
|
||||
|
||||
# $example on$
|
||||
import math
|
||||
|
||||
from pyspark.ml.evaluation import RegressionEvaluator
|
||||
from pyspark.ml.recommendation import ALS
|
||||
from pyspark.sql import Row
|
||||
|
|
|
@ -20,8 +20,6 @@ Decision Tree Classification Example.
|
|||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
|
||||
# $example on$
|
||||
from pyspark import SparkContext, SQLContext
|
||||
from pyspark.ml import Pipeline
|
||||
|
|
|
@ -20,8 +20,6 @@ Decision Tree Regression Example.
|
|||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
|
||||
from pyspark import SparkContext, SQLContext
|
||||
# $example on$
|
||||
from pyspark.ml import Pipeline
|
||||
|
|
|
@ -20,8 +20,6 @@ Gradient Boosted Tree Classifier Example.
|
|||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
|
||||
from pyspark import SparkContext, SQLContext
|
||||
# $example on$
|
||||
from pyspark.ml import Pipeline
|
||||
|
|
|
@ -20,8 +20,6 @@ Gradient Boosted Tree Regressor Example.
|
|||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
|
||||
from pyspark import SparkContext, SQLContext
|
||||
# $example on$
|
||||
from pyspark.ml import Pipeline
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
import re
|
||||
|
||||
import numpy as np
|
||||
from pyspark import SparkContext
|
||||
|
|
|
@ -20,8 +20,6 @@ Random Forest Classifier Example.
|
|||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
|
||||
from pyspark import SparkContext, SQLContext
|
||||
# $example on$
|
||||
from pyspark.ml import Pipeline
|
||||
|
|
|
@ -20,8 +20,6 @@ Random Forest Regressor Example.
|
|||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
|
||||
from pyspark import SparkContext, SQLContext
|
||||
# $example on$
|
||||
from pyspark.ml import Pipeline
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
Binary Classification Metrics Example.
|
||||
"""
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
from pyspark import SparkContext, SQLContext
|
||||
# $example on$
|
||||
from pyspark.mllib.classification import LogisticRegressionWithLBFGS
|
||||
|
|
|
@ -20,8 +20,6 @@ Gradient Boosted Trees Classification Example.
|
|||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
|
||||
from pyspark import SparkContext
|
||||
# $example on$
|
||||
from pyspark.mllib.tree import GradientBoostedTrees, GradientBoostedTreesModel
|
||||
|
|
|
@ -20,8 +20,6 @@ Gradient Boosted Trees Regression Example.
|
|||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
|
||||
from pyspark import SparkContext
|
||||
# $example on$
|
||||
from pyspark.mllib.tree import GradientBoostedTrees, GradientBoostedTreesModel
|
||||
|
|
|
@ -20,8 +20,6 @@ Random Forest Classification Example.
|
|||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
|
||||
from pyspark import SparkContext
|
||||
# $example on$
|
||||
from pyspark.mllib.tree import RandomForest, RandomForestModel
|
||||
|
|
|
@ -20,8 +20,6 @@ Random Forest Regression Example.
|
|||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
|
||||
from pyspark import SparkContext
|
||||
# $example on$
|
||||
from pyspark.mllib.tree import RandomForest, RandomForestModel
|
||||
|
|
|
@ -20,8 +20,6 @@ Collaborative Filtering Classification Example.
|
|||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
|
||||
from pyspark import SparkContext
|
||||
|
||||
# $example on$
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
from pyspark import SparkContext
|
||||
|
|
Loading…
Reference in a new issue