No project description provided
Project description
mG
Usage
- Install libmg by running
pip install git+https://github.com/Unicam-mG/mG.git
- Create a
Dataset
object containing theGraph
instances to process - Define dictionaries of
Psi
,Phi
,Sigma
objects as needed by your application - Define a
CompilationConfig
that is appropriate for yourDataset
- Create a
GNNCompiler
using the dictionaries and theCompilationConfig
- Create an appropriate
Loader
for yourDataset
: use theSingleGraphLoader
if your Dataset contains a single graph and use theMultipleGraphLoader
otherwise. - Build a model from your mG formulas using the
model = GNNCompiler.compile(expr)
method. - Use
output = model.predict(loader.load(), steps=loader.steps_per_epoch)
or a loop like
to run your model on the dataset.for x, y in loader.load(): output = model(x)
- Check the tests folder for some examples of the above steps.
Compatibility
Python 3.10
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
libmg-1.0.2.tar.gz
(46.0 kB
view details)
Built Distribution
libmg-1.0.2-py3-none-any.whl
(51.7 kB
view details)
File details
Details for the file libmg-1.0.2.tar.gz
.
File metadata
- Download URL: libmg-1.0.2.tar.gz
- Upload date:
- Size: 46.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.10.12 Linux/6.2.0-36-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd45c64d72f1245dcc69c4787bcad2d8d56fd8ede87c374f0adbec42d4961347 |
|
MD5 | 2d98bb2a4a1c3bb9d3bfbe7b91dbfe68 |
|
BLAKE2b-256 | 3ab016384ebbc0567a8d1055c504cbc36e3ddc2bcbcb8858695de9d7d036abf2 |
File details
Details for the file libmg-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: libmg-1.0.2-py3-none-any.whl
- Upload date:
- Size: 51.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.10.12 Linux/6.2.0-36-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7b7ee9c2794022feb1a3d3919961990fd5350577189a5508c4919b343d7d9f5 |
|
MD5 | e9a5830a827c4ea1ee3e1c601951d8f4 |
|
BLAKE2b-256 | 27534e7051b7d67f487135be099cc872dccd7f3dbf5fb7b8262e90af367cc3d8 |