[
https://issues.apache.org/jira/browse/SPARK-6291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Owen updated SPARK-6291:
-----------------------------
Assignee: Yanbo Liang
> 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
> Assignee: Yanbo Liang
> Priority: Minor
> Fix For: 1.4.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]