-
Notifications
You must be signed in to change notification settings - Fork 11
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
replace linear regression by ridge regression #933
Conversation
Pull Request Test Coverage Report for Build 7145442051
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't the cross validation or the regularization push the fit to not consider directions of low force for the fitted displacements?
I assume you put this because sometimes the linear regression found unrealistically large displacements because of some noise? Could you check whether the fitted displacements match the original ones to catch that instead?
EDIT: Not sure if this really has an influence, just guessing where you are coming from.
Your assumption is correct, but this fitting has nothing to do with the Hessian matrix fitting. This is the process to make sure that the displacements will be defined with respect to the correct energy minimum, because depending on the initial system the user is giving the energy is given by: And this fitting delivers |
But I guess ideally the user should have the possibility to set this part more flexibly. |
Ok, that I understand then, but couldn't you just |
That's a great idea. I just added a check. |
Ah, probably |
No still not :D |
Anyway, did this have a big impact on the final free energies? I can almost not imagine it, because I think at the least the structures I had tested it on should have been close to equilibrium already. |
Somehow now it looks like I managed to fix it. Don’t ask me how XD I think I have to test it a bit more in contrib before I can be confident that it can move elsewhere. |
Mh, strange, let me test again also next week. It'd be a bit weird, because I thought the structures I had tested it on previously were already relaxed, so I'd be surprised if the changes here make a big difference. |
as far as I can see now phonopy and my class deliver the same heat capacity |
After today's discussion I got the feeling that this class is no longer needed. Since I know that this one solves the one problem that we talked about, I merge it, but it will probably not see more development in the future. |
No description provided.