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.5.tar.gz
(873.4 kB
view details)
Built Distribution
libmg-1.0.5-py3-none-any.whl
(889.3 kB
view details)
File details
Details for the file libmg-1.0.5.tar.gz
.
File metadata
- Download URL: libmg-1.0.5.tar.gz
- Upload date:
- Size: 873.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23214349e298659012af65ded2c5369fede8717f1d3d2e3198d8650abcad6b73 |
|
MD5 | fb14238dfa74260b81e0d05a20e1043d |
|
BLAKE2b-256 | fefee1bf93cb8119adb00b4e40e0e9532fe78c30e5568ff5a05482b0c4402b0b |
File details
Details for the file libmg-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: libmg-1.0.5-py3-none-any.whl
- Upload date:
- Size: 889.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0734f6dcc61caee2b4d661dab125685c6b3de38a60be2a9e5ccb5739037ca1dc |
|
MD5 | 8a4b4b4448de56e5270c9de659606896 |
|
BLAKE2b-256 | eb65aadd9da67d9bdaeaed7d413f2834bb0c8d84f5ab6980428ebc957cd8eeca |