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

    https://github.com/apache/spark/pull/10664#discussion_r59631589
  
    --- Diff: mllib/src/main/scala/org/apache/spark/mllib/fpm/PrefixSpan.scala 
---
    @@ -566,4 +576,88 @@ object PrefixSpan extends Logging {
     @Since("1.5.0")
     class PrefixSpanModel[Item] @Since("1.5.0") (
         @Since("1.5.0") val freqSequences: RDD[PrefixSpan.FreqSequence[Item]])
    -  extends Serializable
    +  extends Saveable with Serializable {
    +
    +  /**
    +   * Save this model to the given path.
    +   * It only works for Item datatypes supported by DataFrames.
    +   *
    +   * This saves:
    +   *  - human-readable (JSON) model metadata to path/metadata/
    +   *  - Parquet formatted data to path/data/
    +   *
    +   * The model may be loaded using [[PrefixSpanModel.load]].
    +   *
    +   * @param sc  Spark context used to save model data.
    +   * @param path  Path specifying the directory in which to save this 
model.
    +   *              If the directory already exists, this method throws an 
exception.
    +   */
    +  @Since("2.0.0")
    +  override def save(sc: SparkContext, path: String): Unit = {
    --- End diff --
    
    Is sc used ?


---
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