Skip to main content

Utility package to work with equivariant matrices and graphs.

Project description

graph2mat: Equivariant matrices meet machine learning

graph2mat_overview

The aim of graph2mat is to pave your way into meaningful science by providing the tools to interface to common machine learning frameworks (e3nn, pytorch) to learn equivariant matrices.

Documentation

It also provides a set of tools to facilitate the training and usage of the models created using the package:

  • Training tools: It contains custom pytorch_lightning modules to train, validate and test the orbital matrix models.
  • Server: A production ready server (and client) to serve predictions of the trained models. Implemented using fastapi.
  • Siesta: A set of tools to interface the machine learning models with SIESTA. These include tools for input preparation, analysis of performance...

The package also implements a command line interface (CLI): graph2mat. The aim of this CLI is to make the usage of graph2mat's tools as simple as possible. It has two objectives:

  • Make life easy for the model developers.
  • Facilitate the usage of the models by non machine learning scientists, who just want good predictions for their systems.

Installation

It can be installed with pip. Adding the tools extra will also install all the dependencies needed to use the tools provided.

pip install graph2mat[tools]

If you want to use graph2mat with e3nn you can also ask for the e3nn extra dependencies:

pip install graph2mat[tools,e3nn]

What is an equivariant matrix?

water_equivariant_matrix

Contributions

We are very open to suggestions, contributions, discussions...

We are looking forward to your contributions!

The graph2mat package was originally created by Peter Bjørn Jorgensen (@peterbjorgensen) and Pol Febrer (@pfebrer) in the frame of a collaboration to machine learn density matrices.

Since then, the following users have contributed to the code:

Citation

If you use graph2mat for one of your works, please cite our original paper:

@article{febrer2025graph2mat,
  title={Graph2Mat: universal graph to matrix conversion for electron density prediction},
  author={Febrer, Pol and J{\o}rgensen, Peter Bj{\o}rn and Pruneda, Miguel and Garc{\'\i}a, Alberto and Ordej{\'o}n, Pablo and Bhowmik, Arghya},
  journal={Machine Learning: Science and Technology},
  volume={6},
  number={2},
  pages={025013},
  year={2025},
  publisher={IOP Publishing}
}

We'll be very happy to see what you have done with it :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graph2mat-0.0.12.tar.gz (1.3 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

graph2mat-0.0.12-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (444.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

graph2mat-0.0.12-cp313-cp313-macosx_11_0_arm64.whl (363.0 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

graph2mat-0.0.12-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (443.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

graph2mat-0.0.12-cp312-cp312-macosx_11_0_arm64.whl (364.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

graph2mat-0.0.12-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (450.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

graph2mat-0.0.12-cp311-cp311-macosx_11_0_arm64.whl (363.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

graph2mat-0.0.12-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (457.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

graph2mat-0.0.12-cp310-cp310-macosx_11_0_arm64.whl (364.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

graph2mat-0.0.12-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (458.3 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

graph2mat-0.0.12-cp39-cp39-macosx_11_0_arm64.whl (365.3 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file graph2mat-0.0.12.tar.gz.

File metadata

  • Download URL: graph2mat-0.0.12.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.14

File hashes

Hashes for graph2mat-0.0.12.tar.gz
Algorithm Hash digest
SHA256 c7dbd8cdb28fa119e6b9b69fd8bf86ccd0564f0806ffe0f30d99cf1b4e5ccacb
MD5 1521eb3720018f6aa39d7d4fa761d1fd
BLAKE2b-256 a6e0820511ef0666e791c14f2b9fbe931881675f3f1b5fdbbf2492a1ce8a259a

See more details on using hashes here.

File details

Details for the file graph2mat-0.0.12-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for graph2mat-0.0.12-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ef194b7c567c72bc03e4656dde917c49d7206321f275d32aec303d8ab03c3d12
MD5 062fc71ee2a5e75ac53f22a8e96cec62
BLAKE2b-256 806991bdc4faf7b0b566594e8f712751d45f4b510017970d951e85c4796e3424

See more details on using hashes here.

File details

Details for the file graph2mat-0.0.12-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for graph2mat-0.0.12-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf76c20f71446d86f6594abe05e19ea398cef70f4c34ecfcfcbb37970a1da820
MD5 43bb5c6b980dc0d4d7e498ed5c9fcb60
BLAKE2b-256 8e0d535a389367549bca963488c5f6c424d68be521ebe33c96c7732dab1dfaef

See more details on using hashes here.

File details

Details for the file graph2mat-0.0.12-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for graph2mat-0.0.12-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b29d2fc2f8f2028d2e3aa1e809e63bb21c6dc95622e211d1e516efb3141f3825
MD5 22b89d11ffdc06210cca0a7c62be0ca8
BLAKE2b-256 49b6cbdaa2f9cfabc6ef2b4f945bcfaa79df61cd5649779194110bfcde9ccc64

See more details on using hashes here.

File details

Details for the file graph2mat-0.0.12-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for graph2mat-0.0.12-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb9c9f5a8531170618bdbd7c3f72c0d1b04be9acd88f6dc10dba23564105fb48
MD5 01989ff35b30b828d141960df372be84
BLAKE2b-256 fb2ec56a7c7e2a589aa10ed2d75a65a03868fd67fa1aaabe2c4913fdc5159803

See more details on using hashes here.

File details

Details for the file graph2mat-0.0.12-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for graph2mat-0.0.12-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a290dcb7884884fe033aa56137d6dc67f2c652e12b98fc5b232b4b71d2488868
MD5 daed79d3c309cc4b8c85951c7f23dae9
BLAKE2b-256 09ae0a1ae19f156814a5baeebcc786660af3ad9e05125f6086898c00c8f28fc8

See more details on using hashes here.

File details

Details for the file graph2mat-0.0.12-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for graph2mat-0.0.12-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30d3d1d836c860a59a269d261d91cf948c39bada1326bcd8fc74198810088aff
MD5 a627fcf5be2412a30aeb936044d76ffe
BLAKE2b-256 a1d883e691396b57290c606eb00bbbf85b55d9383a3cc0f73e8a590e6dff3d57

See more details on using hashes here.

File details

Details for the file graph2mat-0.0.12-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for graph2mat-0.0.12-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 29b64e5e5c3d9d383f3c0f4caefee5cfec6a36c8e970b3e9ab76fc52918f687b
MD5 26a24e3530511b8f0153cdecedb0e86d
BLAKE2b-256 5289b6ae952074b44e5c0b33643d88b954f22a2331a8a16f400e4a59ab0bd4f9

See more details on using hashes here.

File details

Details for the file graph2mat-0.0.12-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for graph2mat-0.0.12-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 216fa76e8161549e24af5effaa3819ea7b99df7acb58c7e5bafc2f718e35608a
MD5 b6c5ccda146d2925d4e4c3180812d5cf
BLAKE2b-256 14748264380ea286ab9f3e62ecc26d1f375d09a37a387b269ef653dfb932dedb

See more details on using hashes here.

File details

Details for the file graph2mat-0.0.12-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for graph2mat-0.0.12-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cccf08537ef8c1d097c97b7b727b0442ca39c02202ffc7c24f72ea688ba25937
MD5 5f21f281f7f6dce79787a796e96a9e9e
BLAKE2b-256 b32b688f9cb7bf8c01ea34e7f5cb0466753c0a5f4599fbbffb3213eb4c5050ad

See more details on using hashes here.

File details

Details for the file graph2mat-0.0.12-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for graph2mat-0.0.12-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f5fb984a2c2e536cab90f72955b1cf753cd796b5b802e4fc2e968e5512121099
MD5 c83f3c23da6c9aad1e62fd4cb6b69328
BLAKE2b-256 084031177a0100410a36ba0da7f6d351c33127f55c9f2f99f9ee4d134d4722be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page