You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2015/03/19 16:10:39 UTC
[jira] [Resolved] (SPARK-6291) GLM toString should not output full
weight vector
[ https://issues.apache.org/jira/browse/SPARK-6291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen resolved SPARK-6291.
------------------------------
Resolution: Fixed
Fix Version/s: 1.4.0
Issue resolved by pull request 5038
[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
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org