Description
GeneralizedLinearModel.toString prints (weights, intercept)
override def toString() = "(weights=%s, intercept=%s)".format(weights, intercept)
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)