Github user MechCoder commented on a diff in the pull request:
https://github.com/apache/spark/pull/7380#discussion_r36967319
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/tree/model/DecisionTreeModel.scala
---
@@ -103,19 +110,32 @@ class DecisionTreeModel(val topNode: Node, val algo:
Algo) extends Serializable
/**
* Print the full model to a string.
+ * @since 1.2.0
*/
def toDebugString: String = {
val header = toString + "\n"
header + topNode.subtreeToString(2)
}
+ /**
+ * @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 1.3.0
+ */
override def save(sc: SparkContext, path: String): Unit = {
DecisionTreeModel.SaveLoadV1_0.save(sc, path, this)
}
+ /**
+ * @since 1.3.0
+ */
override protected def formatVersion: String =
DecisionTreeModel.formatVersion
--- End diff --
Is this not protected?
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]