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.11.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.11-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.11-cp313-cp313-macosx_11_0_arm64.whl (363.0 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

graph2mat-0.0.11-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.11-cp312-cp312-macosx_11_0_arm64.whl (364.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

graph2mat-0.0.11-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.11-cp311-cp311-macosx_11_0_arm64.whl (363.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

graph2mat-0.0.11-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.11-cp310-cp310-macosx_11_0_arm64.whl (364.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

graph2mat-0.0.11-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.11-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.11.tar.gz.

File metadata

  • Download URL: graph2mat-0.0.11.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.11.tar.gz
Algorithm Hash digest
SHA256 f9c599b4fa23850972e3a788b03252440e87d258c0d4825d769d3f8ccf925be0
MD5 f011ab406f2901ff9c9aebeb022475cd
BLAKE2b-256 424db157a3de82dace4f1914902ba038dda98eef1933d086affec627045f2779

See more details on using hashes here.

File details

Details for the file graph2mat-0.0.11-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.11-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c2612a233db7ff5c0fb85641abd8d117d3b592dae024edb23847b60aa8d4747b
MD5 e31607323ea823a46db7a7355aacfd4f
BLAKE2b-256 68dee1830b4b667835e1663a2e4a4d9a85b53407249828ac34b62ebb3177b2ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for graph2mat-0.0.11-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a44c35640bf199c11677e8853b1fd45d51785da4b57ff397e277f18a42e9dd88
MD5 7066f4a742026a88475425e883b0cd60
BLAKE2b-256 c82c88daa6e30bbc40a7031606bfceed8f3998296ba37ed8167c982962dc0e33

See more details on using hashes here.

File details

Details for the file graph2mat-0.0.11-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.11-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1666edcf007d40fcd6aa2b625395e3c0a01c2f6f5d904156facad205aa50ab7a
MD5 248cbeb12483146d4ce7bd739d06e149
BLAKE2b-256 98d8b1d8af852fea81aa37f98afa43eeda52785e7b4a803593e2b7c9dfcce27f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for graph2mat-0.0.11-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca279f5f23d594125bb8bf9a8cae1ca85c7e4847f500e67ad176a3d20ab937e9
MD5 574ffdc2b3f6e16d70752ea07f6846ca
BLAKE2b-256 d088c199020962a59417a64d015df6d0286b6845f5c61c350f08322bf294bb19

See more details on using hashes here.

File details

Details for the file graph2mat-0.0.11-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.11-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d33cd0d2ac67072deb5c9dd680846cd8caa1122001e845eb4e39aaa1e1b4509d
MD5 f92cda16963835ca50159ba94d5e8061
BLAKE2b-256 1127468a99264dc57b0c8b77e97d198cfd18d7fd8dc4f95b7e7f570ac9b4b5ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for graph2mat-0.0.11-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e4f4fea56bde3dda44e197c4c044e8c8e4afe5d83c7f9360f7ea794d210f3a4
MD5 f64dc66afa555cda033a5067b9a7a2e2
BLAKE2b-256 6614e5a0e64aff110417d1f87ddd750d28d11b066691994201889bb05059cbc8

See more details on using hashes here.

File details

Details for the file graph2mat-0.0.11-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.11-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7a4c5e328157310f003fe1b0df0736dc05a1342d2059c0c14df87f167a138484
MD5 0e8235d47ff57459404e2ead9517efd8
BLAKE2b-256 f856817da07a0e08dc01bc209226d7f5dfa9a88fbcd09e5d4565db0d1490f205

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for graph2mat-0.0.11-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6bae4187d2d3032833b360dcad96c8db3a4cdc7a000b209ee2aa703f55d706d0
MD5 e347a554cd2be0f8c3ac8c7c539713bc
BLAKE2b-256 55358b392c41bbb27f7628381a3c99047bf8921f1c5223f4d8da03672cdc0bb2

See more details on using hashes here.

File details

Details for the file graph2mat-0.0.11-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.11-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4754b9b22022a7021f79a612b029f91b730564706d6d4232daf72ddfe4cacbbb
MD5 740d921092f60dca9642029fd0e55d04
BLAKE2b-256 b328f1e83911116bc28b23b9290c31621a35241f832dbc75f7ef58ae5b921150

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for graph2mat-0.0.11-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dbc684dc562a2c9589981ad2aee6667d0cc4509ea6e35b9d71109f2b8ccc98aa
MD5 3fd1dfde82657a4500092e0ebf454486
BLAKE2b-256 abe21a0ccd1606270525cb28dd986bbaa666bd416b38b389f767ec83510f9bdb

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