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.0.tar.gz
(45.8 kB
view details)
Built Distribution
libmg-1.0.0-py3-none-any.whl
(51.6 kB
view details)
File details
Details for the file libmg-1.0.0.tar.gz
.
File metadata
- Download URL: libmg-1.0.0.tar.gz
- Upload date:
- Size: 45.8 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 | 65bd89180d65999b0f85c9637a628da6910bbfac2028d081f1e5878e32c2b644 |
|
MD5 | 136abdd010f3c2bf5e74f5189eb2a1ea |
|
BLAKE2b-256 | f9e65d28f5a45a77ef8ce176941de56535eba54de09307c14c238402cdd4e651 |
File details
Details for the file libmg-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: libmg-1.0.0-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 | 8ffd96eb56d6ccd8824e7061efa83598377b0445f5a1a125e8f39cd6664913bb |
|
MD5 | 4a6d39d83bdbd425c8a1496e796f4730 |
|
BLAKE2b-256 | 296cf675f294d20ed7d795be8c5777161c221a8516f53a72004d289a78407692 |