Skip to content

Avoid fitting constant term ("intercept") in linear models - #2

Open
annulen wants to merge 1 commit into
teixeirafilipe:masterfrom
annulen:fit_intercept
Open

Avoid fitting constant term ("intercept") in linear models#2
annulen wants to merge 1 commit into
teixeirafilipe:masterfrom
annulen:fit_intercept

Conversation

@annulen

@annulen annulen commented Sep 15, 2023

Copy link
Copy Markdown

By default all linear models in Scikit-learn include constant term called "intercept". However, it makes no sense in the context of vibrational mode interpretation, as atom displacement vectors are not supposed to include translational component.

This change seems to make a slight improvement to the quality of VMARD analysis. In particular, it often eliminates ANGLE and TOR contaminations from high frequency modes which can be expected to be BOND-only. Values of R^2 don't change significantly, and quite often see an improvement.

Interestingly, this change dramatically improves quality of VMLD analysis, so it becomes comparable to VMARD (while being much faster).

On the other hand, it seems like fit_intercept=False completely ruins VMBLD results, so I kept it as True there but made the setting explicit. However, VMBLD performance seems to be poor anyway.

By default all linear models in Scikit-learn include constant term called
"intercept". However, it makes no sense in the context of vibrational mode
interpretation, as atom displacement vectors are not supposed to include
translational component.

This change seems to make a slight improvement to the quality of VMARD
analysis. In particular, it often eliminates ANGLE and TOR contaminations
from high frequency modes which can be expected to be BOND-only. Values of
R^2 don't change significantly, and quite often see an improvement.

Interestingly, this change dramatically improves quality of VMLD analysis,
so it becomes comparable to VMARD (while being much faster).

On the other hand, it seems like fit_intercept=False completely ruins
VMBLD results, so I kept it as True there but made the setting explicit.
However, VMBLD performance seems to be poor anyway.
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

Successfully merging this pull request may close these issues.

1 participant