You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by wobu <bu...@gmail.com> on 2016/11/17 09:24:35 UTC
why is method predict protected in PredictionModel
Hi,
we were using Spark 1.3.1 for a long time and now we want to upgrade to 2.0
release.
So we used till today the mllib package and the RDD API.
Now im trying to refactor our mllib NaiveBayesClassifier to the new "ml"
api.
*The Question:*
why is the method "predict" in the class "PredictionModel" of package "ml"
protected?
I am trying to find a way to load a saved prediction model and predict
values without having to use the pipline or transformer api.
Best regards
wobu
--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/why-is-method-predict-protected-in-PredictionModel-tp28095.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org
Re: why is method predict protected in PredictionModel
Posted by Yanbo Liang <yb...@gmail.com>.
This function is used internally currently, we will expose it as public to
support make prediction on single instance.
See discussion at https://issues.apache.org/jira/browse/SPARK-10413.
Thanks
Yanbo
On Thu, Nov 17, 2016 at 1:24 AM, wobu <bu...@gmail.com> wrote:
> Hi,
>
> we were using Spark 1.3.1 for a long time and now we want to upgrade to 2.0
> release.
> So we used till today the mllib package and the RDD API.
>
> Now im trying to refactor our mllib NaiveBayesClassifier to the new "ml"
> api.
>
> *The Question:*
> why is the method "predict" in the class "PredictionModel" of package "ml"
> protected?
>
> I am trying to find a way to load a saved prediction model and predict
> values without having to use the pipline or transformer api.
>
>
> Best regards
>
> wobu
>
>
>
> --
> View this message in context: http://apache-spark-user-list.
> 1001560.n3.nabble.com/why-is-method-predict-protected-in-
> PredictionModel-tp28095.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe e-mail: user-unsubscribe@spark.apache.org
>
>