spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Weichen Xu <weichen...@databricks.com>
Subject Re: Example of GBTClassifier
Date Tue, 03 Oct 2017 02:15:33 GMT
It should be eclipses issues. The method is there, in super class
`Predictor`.

On Mon, Oct 2, 2017 at 11:51 PM, mckunkel <m.kunkel@fz-juelich.de> wrote:

> Greetings,
> I am trying to run the example in the example directory for the
> GBTClassifier. But when I view this code in eclipse, I get an error such
> that
> "The method setLabelCol(String) is undefined for the type GBTClassifier"
> For the line
>
>         GBTClassifier gbt = new
> GBTClassifier().setLabelCol("indexedLabel").setFeaturesCol(
> "indexedFeatures")
>                                 .setMaxIter(10);
>
> However the API says this method is there, eclipse does not.
> I did a straight copy paste, including all imports.
>
> Someone please help.
>
>
>
> --
> Sent from: http://apache-spark-user-list.1001560.n3.nabble.com/
>
> ---------------------------------------------------------------------
> To unsubscribe e-mail: user-unsubscribe@spark.apache.org
>
>

Mime
View raw message