You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Lyx <11...@qq.com> on 2020/09/22 05:53:18 UTC

【Spark ML】How to get access of the MLlib's LogisticRegressionWithSGD after 3.0.0?

Hi,
&nbsp; &nbsp; I have updated my Spark to the version of 3.0.0,
and it seems that the LogisticRegressionWithSGD's&nbsp; constructor is private within the mllib&nbsp; package,&nbsp;
So i can't initialize an instance of this class.


How can i still use this class rather than switch to the LogisticRegressionWithLBFGS ?&nbsp;

Re: 【Spark ML】How to get access of the MLlib's LogisticRegressionWithSGD after 3.0.0?

Posted by Sean Owen <sr...@gmail.com>.
-dev

See the migration guide:
https://spark.apache.org/docs/3.0.0/ml-migration-guide.html

Use ml.LogisticRegression, which should still let you use SGD

On Tue, Sep 22, 2020 at 12:54 AM Lyx <11...@qq.com> wrote:
>
> Hi,
>     I have updated my Spark to the version of 3.0.0,
> and it seems that the LogisticRegressionWithSGD's  constructor is private within the mllib  package,
> So i can't initialize an instance of this class.
>
> How can i still use this class rather than switch to the LogisticRegressionWithLBFGS ?
>

---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org