You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "zhengruifeng (JIRA)" <ji...@apache.org> on 2018/08/03 02:08:00 UTC

[jira] [Commented] (SPARK-10413) ML models should support prediction on single instances

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

zhengruifeng commented on SPARK-10413:
--------------------------------------

Is there a plan to expose {{{{predict}}}} in clustering algs?  [~mengxr]

 

I just encounter a case in which this feature is needed.

> ML models should support prediction on single instances
> -------------------------------------------------------
>
>                 Key: SPARK-10413
>                 URL: https://issues.apache.org/jira/browse/SPARK-10413
>             Project: Spark
>          Issue Type: Umbrella
>          Components: ML
>            Reporter: Xiangrui Meng
>            Priority: Critical
>
> Currently models in the pipeline API only implement transform(DataFrame). It would be quite useful to support prediction on single instance.
> UPDATE: This issue is for making predictions with single models.  We can make methods like {{def predict(features: Vector): Double}} public.
> * This issue is *not* for single-instance prediction for full Pipelines, which would require making predictions on {{Row}}s.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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