Search code examples
apache-sparkapache-spark-mllibapache-spark-ml

Where is the predict() in Logistic Regression of Spark MLLIb implemented?


Can somebody point me to the implementation of predict() in LogisticRegressionModel of spark mllib? I could find a predictPoint() in the class LogisticRegressionModel, but where is predict()?


Solution

  • Since LogisticRegressionModel extends GeneralizedLinearModel with ClassificationModel (and some other less interesting stuff) it is reasonable to expect that predict is inherited from on of the above.

    And as expected: