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.1.tar.gz
(45.9 kB
view details)
Built Distribution
libmg-1.0.1-py3-none-any.whl
(51.6 kB
view details)
File details
Details for the file libmg-1.0.1.tar.gz
.
File metadata
- Download URL: libmg-1.0.1.tar.gz
- Upload date:
- Size: 45.9 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 | a8ae3a3f7cfbedc74a1c6da697e57fa1e7889cdf9cb92ed791a94e709318dd30 |
|
MD5 | 9eeb50422c18ac1e1509843a79a030ac |
|
BLAKE2b-256 | 9258ca24b8a1c9c1b1e916e1e3d4fb162f76fbd236a89d191c67f1a9ffb7a887 |
File details
Details for the file libmg-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: libmg-1.0.1-py3-none-any.whl
- Upload date:
- Size: 51.6 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 | 3feedef2fab9fd14d213a6c9cc02ff6fc8244690588e975988e03cae64c5973c |
|
MD5 | 29092035ab2946d35c6aa88e7722a02f |
|
BLAKE2b-256 | e4321d588587ed6073d676e0ae08318f57f2318ee33443f45b42dc888abeb705 |