Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize coef by default #161

Open
jnothman opened this issue Feb 15, 2017 · 1 comment
Open

Normalize coef by default #161

jnothman opened this issue Feb 15, 2017 · 1 comment

Comments

@jnothman
Copy link
Contributor

The predictions of a linear model are invariant to the scale of its weights. Thus the scale of weights are determined by regularisation (and, I think, the bias term if unregularised). Are weights therefore more comparable across competing linear models if scaled by default (e.g. to unit vector)?

@kmike
Copy link
Contributor

kmike commented Feb 15, 2017

Coefficient scale affects probability output - if coefficients are large then classifier is more "confident" - probabilities are closer to 0 and 1, at least for logistic regression.

Currently we're normalizing coefficients when computing colors in show_weights / show_prediction, so currently looking at the colors is a way to compare two models with different coefficient scale.

I can see how normalizing coefficients to unit scale (and showing this scale) can be helpful. But it also can be more confusing - what user see is no longer vanilla coefficients.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants