You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/12/06 12:27:59 UTC

[jira] [Assigned] (SPARK-18739) Models in pyspark.classification support setXXXCol methods

     [ https://issues.apache.org/jira/browse/SPARK-18739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Apache Spark reassigned SPARK-18739:
------------------------------------

    Assignee: Apache Spark

> Models in pyspark.classification support setXXXCol methods
> ----------------------------------------------------------
>
>                 Key: SPARK-18739
>                 URL: https://issues.apache.org/jira/browse/SPARK-18739
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML, PySpark
>            Reporter: zhengruifeng
>            Assignee: Apache Spark
>
> Now, models in pyspark don't suport {{setXXCol}} methods at all.
> I update models in {{classification.py}} according the hierarchy in the scala side:
> 1, add {{setFeaturesCol}} and {{setPredictionCol}} in class {{JavaPredictionModel}}
> 2, add {{setRawPredictionCol}} in class {{JavaClassificationModel}}
> 3, create class {{JavaProbabilisticClassificationModel}} inherit {{JavaClassificationModel}}, and add {{setProbabilityCol}} in it
> 4, {{LogisticRegressionModel}}, {{DecisionTreeClassificationModel}}, {{RandomForestClassificationModel}} and {{NaiveBayesModel}} inherit {{JavaProbabilisticClassificationModel}}
> 5, {{GBTClassificationModel}} and {{MultilayerPerceptronClassificationModel}} inherit {{JavaClassificationModel}}
> 6, {{OneVsRestModel}} inherit {{JavaModel}}, and add {{setFeaturesCol}} and {{setPredictionCol}} method.
> With regard to models in clustering and features, I suggest that we first add some abstract classes like {{ClusteringModel}}, {{ProbabilisticClusteringModel}},  {{FeatureModel}} in the scala side, otherwise we need to manually add setXXXCol methods one by one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org