-
Notifications
You must be signed in to change notification settings - Fork 17
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
Computation of kernel between atomic environments takes a long time using rascal.models.kernel #389
Comments
That's unexpected! Do you have a full script we could use to reproduce this? |
Dear bananenpampe, Thanks for reporting! There are many factors that influence the speed of kernel computation (in librascal and elsewhere), so it would help to have more information on what environment you're running this in and what sort of structures you're testing this on, in particular the atomic species composition. The librascal A few things to check:
Thanks! |
Hello, I have included a script that should reproduce the behaviour and the data file that I am using which should be placed in the same directory. |
Hello, |
Including For a larger number of environments, sklearn is three times faster using the options you mentioned. |
Looks ok to me, thank for your tests. |
We just would need to replace the one line in kernel computation for the case kernel_type https://github.com/cosmo-epfl/librascal/blob/master/bindings/rascal/models/kernels.py#L143 |
Hello everyone,
I am computing the polynomial kernel between atomic environments using the rascal.models.kernel class
According to cProfile this takes about 42 seconds.
However, when I compute the same kernel using the
sklearn.metrics.pairwise.polynomial_kernel
kernel implementation:According to cProfile the calculation of the kernel only takes 2 seconds.
Is there something I am missing ?
The transformation of the features takes about 1 second
The text was updated successfully, but these errors were encountered: