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.3.tar.gz
(45.9 kB
view details)
Built Distribution
libmg-1.0.3-py3-none-any.whl
(51.7 kB
view details)
File details
Details for the file libmg-1.0.3.tar.gz
.
File metadata
- Download URL: libmg-1.0.3.tar.gz
- Upload date:
- Size: 45.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c1b4bcb5e46dbd96ee187f3c0807435991c08ed77f85e23803d5ec1fbf49c42 |
|
MD5 | decf69dda772a5bd42b9820bd10a2162 |
|
BLAKE2b-256 | ebd379083b44647efed1c125424d37719eba62f38097b5013459b9d2e2c10a9d |
File details
Details for the file libmg-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: libmg-1.0.3-py3-none-any.whl
- Upload date:
- Size: 51.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14b421cc3d371fff3d3770c1a2f9fc4f2bf5eb7a7aecd0b59fe31868e9aa065a |
|
MD5 | a555d982f90372453486b7395a296200 |
|
BLAKE2b-256 | 0d33bf75377eecd89f676cdf21de75cbf182b00ea07013675afc291a4802f0e8 |