title: Which function is used for the prediction in Sparks Mllib
body: <p>What function is used to calculate the prediction for a certain data point.  Consider the following code: </p>
  
  <pre><code>final LogisticRegressionModel model = logisticRegression.run(train.rdd());
  point = train.rdd().take(0);
  Double prediction = model.predict(point.features());
  </code></pre>
  
  <p>I thought is would be </p>
  
  <p><a href="https://i.stack.imgur.com/gKaRj.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gKaRj.gif" alt="enter image description here"></a> </p>
  
  <p>but I could not find the documentation that implements this function. </p>