Skip to main content

No project description provided

Project description

mG

Tests

Usage

  • Install libmg by running pip install git+https://github.com/Unicam-mG/mG.git
  • Create a Dataset object containing the Graph instances to process
  • Define dictionaries of Psi, Phi, Sigma objects as needed by your application
  • Define a CompilationConfig that is appropriate for your Dataset
  • Create a GNNCompiler using the dictionaries and the CompilationConfig
  • Create an appropriate Loader for your Dataset: use the SingleGraphLoader if your Dataset contains a single graph and use the MultipleGraphLoader 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
    for x, y in loader.load():
        output = model(x)
    
    to run your model on the dataset.
  • Check the tests folder for some examples of the above steps.

Compatibility

Python 3.10

Project details


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)

Uploaded Source

Built Distribution

libmg-1.0.2-py3-none-any.whl (51.7 kB view details)

Uploaded Python 3

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

Hashes for libmg-1.0.2.tar.gz
Algorithm Hash digest
SHA256 cd45c64d72f1245dcc69c4787bcad2d8d56fd8ede87c374f0adbec42d4961347
MD5 2d98bb2a4a1c3bb9d3bfbe7b91dbfe68
BLAKE2b-256 3ab016384ebbc0567a8d1055c504cbc36e3ddc2bcbcb8858695de9d7d036abf2

See more details on using hashes here.

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

Hashes for libmg-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c7b7ee9c2794022feb1a3d3919961990fd5350577189a5508c4919b343d7d9f5
MD5 e9a5830a827c4ea1ee3e1c601951d8f4
BLAKE2b-256 27534e7051b7d67f487135be099cc872dccd7f3dbf5fb7b8262e90af367cc3d8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page