It should be eclipses issues. The method is there, in super class `Predictor`.
On Mon, Oct 2, 2017 at 11:51 PM, mckunkel <m.kun...@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-unsubscr...@spark.apache.org > >