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

    https://github.com/apache/spark/pull/9894#discussion_r45683880
  
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/clustering/LDA.scala ---
    @@ -486,6 +487,61 @@ class LocalLDAModel private[ml] (
     
       @Since("1.6.0")
       override def isDistributed: Boolean = false
    +
    +  @Since("1.6.0")
    +  override def write: MLWriter = new 
LocalLDAModel.LocalLDAModelWriter(this)
    +}
    +
    +
    +@Since("1.6.0")
    +object LocalLDAModel extends MLReadable[LocalLDAModel] {
    +
    +  private[LocalLDAModel]
    +  class LocalLDAModelWriter(instance: LocalLDAModel) extends MLWriter {
    +
    +    private case class Data(vocabSize: Int,
    +        topicsMatrix: Matrix,
    +        docConcentration: Vector,
    +        topicConcentration: Double)
    +
    +    override protected def saveImpl(path: String): Unit = {
    +      DefaultParamsWriter.saveMetadata(instance, path, sc)
    +      val oldModel = instance.oldLocalModel
    +      val data = Data(instance.vocabSize,
    --- End diff --
    
    no need to put 1 argument per line in method calls


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to