spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "holdenk (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-5981) pyspark ML models should support predict/transform on vector within map
Date Sat, 08 Oct 2016 00:16:20 GMT

    [ https://issues.apache.org/jira/browse/SPARK-5981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15556714#comment-15556714
] 

holdenk commented on SPARK-5981:
--------------------------------

I'm not sure porting the models to Python sounds like a good idea, giving our push to put
more computation into the JVM seems counter intuitive. I'm personally in favour of closing
this as a WONTFIX - what are your thoughts [~josephkb] & [~mlnick]?

> pyspark ML models should support predict/transform on vector within map
> -----------------------------------------------------------------------
>
>                 Key: SPARK-5981
>                 URL: https://issues.apache.org/jira/browse/SPARK-5981
>             Project: Spark
>          Issue Type: Improvement
>          Components: MLlib, PySpark
>    Affects Versions: 1.3.0
>            Reporter: Joseph K. Bradley
>
> Currently, most Python models only have limited support for single-vector prediction.
> E.g., one can call {code}model.predict(myFeatureVector){code} for a single instance,
but that fails within a map for Python ML models and transformers which use JavaModelWrapper:
> {code}
> data.map(lambda features: model.predict(features))
> {code}
> This fails because JavaModelWrapper.call uses the SparkContext (within the transformation).
 (It works for linear models, which do prediction within Python.)
> Supporting prediction within a map would require storing the model and doing prediction/transformation
within Python.



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


Mime
View raw message