[ https://issues.apache.org/jira/browse/SPARK-6291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14362860#comment-14362860 ]
Apache Spark commented on SPARK-6291: ------------------------------------- User 'yanboliang' has created a pull request for this issue: https://github.com/apache/spark/pull/5038 > GLM toString should not output full weight vector > ------------------------------------------------- > > Key: SPARK-6291 > URL: https://issues.apache.org/jira/browse/SPARK-6291 > Project: Spark > Issue Type: Improvement > Components: MLlib > Affects Versions: 1.3.0 > Reporter: Joseph K. Bradley > Priority: Minor > > GeneralizedLinearModel.toString prints (weights, intercept) > {code} > override def toString() = "(weights=%s, intercept=%s)".format(weights, > intercept) > {code} > This has downsides for large models: > * The output gets truncated, so you cannot see the intercept. > * The long list of weights is not very useful. > Proposal: Follow the example of DecisionTreeModel, where toString prints a > small summary, and toDebugString prints the full model. The summary could > have: > * intercept > * numFeatures > * (maybe other stats) -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org