Github user sethah commented on a diff in the pull request:
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/util/ReadWrite.scala ---
    @@ -446,6 +459,11 @@ private[ml] object DefaultParamsReader {
         val cls = Utils.classForName(metadata.className)
    +  def loadInitialModel[M <: Model[M]](path: String, sc: SparkContext): 
Try[M] = {
    +    val initialModelPath = new Path(path, "initialModel").toString
    +    Try(loadParamsInstance[M](initialModelPath, sc))
    --- End diff --
    Note, now we always try to load the initial model, which I would guess adds 
some overhead in the cases when there is none, but we have to fail and catch 
the exception. Let's leave this for now since it's cleaner, and only change it 
if it becomes a problem.

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

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to