[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:
Zheng RuiFeng 2016-03-11 13:49:37 -08:00 committed by Davies Liu
parent 073bf9d4d9
commit 42afd72c65
15 changed files with 0 additions and 27 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -18,7 +18,6 @@
from __future__ import print_function
import sys
import re
import numpy as np
from pyspark import SparkContext

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -20,8 +20,6 @@ Collaborative Filtering Classification Example.
"""
from __future__ import print_function
import sys
from pyspark import SparkContext
# $example on$

View file

@ -29,7 +29,6 @@
"""
from __future__ import print_function
import os
import sys
from pyspark import SparkContext