Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Lambda arguments args NameParam defaults Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str Str body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Lambda arguments args NameParam defaults Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list
N/A __future__ absolute_import pyspark.sql SQLContext pyspark.mllib.regression LabeledPoint utils.rdd_utils from_labeled_point to_labeled_point lp_to_simple_rdd to_data_frame N/A N/A sc features labels categorical N/A False N/A N/A 
    Convert numpy arrays of features and labels into Spark DataFrame
     N/A lp_rdd N/A to_labeled_point sc features labels categorical N/A sql_context N/A SQLContext sc N/A df N/A N/A sql_context createDataFrame lp_rdd N/A df N/A from_data_frame N/A N/A df categorical nb_classes N/A False None N/A N/A 
    Convert DataFrame back to pair of numpy arrays
     N/A lp_rdd N/A N/A N/A df rdd map N/A N/A N/A row N/A N/A LabeledPoint N/A row label N/A row features N/A N/A features labels N/A from_labeled_point lp_rdd categorical nb_classes N/A N/A features labels N/A df_to_simple_rdd N/A N/A df categorical nb_classes featuresCol labelCol N/A False None features label N/A N/A 
    Convert DataFrame into RDD of pairs
     N/A sqlContext N/A df sql_ctx N/A N/A N/A sqlContext registerDataFrameAsTable df temp_table N/A selected_df N/A N/A sqlContext sql N/A N/A SELECT {0} AS features, {1} as label from temp_table format featuresCol labelCol N/A lp_rdd N/A N/A N/A selected_df rdd map N/A N/A N/A row N/A N/A LabeledPoint N/A row label N/A row features N/A rdd N/A lp_to_simple_rdd lp_rdd categorical nb_classes N/A rdd N/A