Github user jkbradley commented on the pull request:

    https://github.com/apache/spark/pull/7538#issuecomment-128445916
  
    > For accessing the pr(), fMeasureByThreshold etc, I'll have to do 
model.summary.asInstanceOf[Binary..] I suppose that should be okay, right? 
(Similar things are being done in LDAModel etc)
    
    I agree it's a bit awkward, but I prefer that to providing null/bad values. 
 The other big choice we could have made when creating spark.ml is separate 
binary and multiclass algorithms, but that would have created a bunch of copied 
APIs.
    
    > If I make objectiveHistory and totalIterations defs then, that would be 
different from the LinearRegressionSummary where it would be vals. This would 
create differences when being called from Java. i.e, I'll have to do 
objectiveHistory() for Logistic nd objectiveHistory for Linear
    
    I don't think def and val look different from Java.  The Scala compiler 
creates both as methods, so they should appear to be the same for the Java and 
Scala APIs.
    
    LGTM.  Thanks for iterating through updates with me!  I'll merge this with 
master and branch-1.5


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

Reply via email to