Comments (4)
Hi @markus1978,
Yes, the classification is definitely above linear in scaling. Even the simplest form of classification that just returns the dimensionality will require calculating the full distance matrix, which scales as O(n^2) with system size n.
The code becomes especially slow when doing full classification for surfaces and 2D systems. Some of that time is controllable by tweaking the default settings to favor speed instead of accuracy. Could be e.g. done by lowering max_cell_size to ~9Å and using pos_tol=[0.5]. The rest of that time could be cut with a more optimized implementation and switching to C++ in a couple of critical places.
If you really need to classify a lot of systems with around 1k atoms, I could do some profiling to identify the bottlenecks and improve on them.
from matid.
If you only require the dimensionality from the classifier (0D, 1D, 2D, 3D), you can check out this tutorial. Doing just this will be a lot faster than the full classification when surfaces and 2D materials are involved.
from matid.
from matid.
Ok, great! Please keep me informed about the performance (reopen the issues if needed). The simple dimensionality detection should definitely not take hours for ~1000k atoms.
In general, the more advanced classification performed by the matid.Classifier.classify
is not really designed for systems that big. It is meant for systems sizes up to a few hundred atoms. The bigger systems with 1k+ atoms are typically force-field calculations, and their classification is a much more complicated task than what MatID was designed for, as they can represent much more complex systems (solid-liquid interfaces, stacked structures, liquids).
from matid.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matid.