Coder Social home page Coder Social logo

Comments (4)

lauri-codes avatar lauri-codes commented on June 20, 2024

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.

lauri-codes avatar lauri-codes commented on June 20, 2024

@markus1978,

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.

markus1978 avatar markus1978 commented on June 20, 2024

from matid.

lauri-codes avatar lauri-codes commented on June 20, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.