You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Joseph K. Bradley (JIRA)" <ji...@apache.org> on 2015/03/12 00:23:38 UTC

[jira] [Created] (SPARK-6291) GLM toString should not output full weight vector

Joseph K. Bradley created SPARK-6291:
----------------------------------------

             Summary: 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org