You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by yanboliang <gi...@git.apache.org> on 2017/01/11 10:04:51 UTC

[GitHub] spark pull request #12064: [SPARK-14272][ML] Evaluate GaussianMixtureModel w...

Github user yanboliang commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12064#discussion_r95537252
  
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/clustering/GaussianMixture.scala ---
    @@ -130,6 +130,25 @@ class GaussianMixtureModel private[ml] (
       }
     
       /**
    +   * Return the total log-likelihood for this model on the given data.
    +   */
    +  @Since("2.2.0")
    +  def computeLogLikelihood(dataset: Dataset[_]): Double = {
    --- End diff --
    
    I have a question here, should we provide the final ```logLikelihood``` of the model in its summary as well? Since lots of users will use it to evaluate the current model, that they don't need to take another pass on data.
    
    This will expose a public API, cc @jkbradley @sethah @srowen @MLnick to discuss the API.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org