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.3.tar.gz (45.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for libmg-1.0.3.tar.gz
Algorithm Hash digest
SHA256 6c1b4bcb5e46dbd96ee187f3c0807435991c08ed77f85e23803d5ec1fbf49c42
MD5 decf69dda772a5bd42b9820bd10a2162
BLAKE2b-256 ebd379083b44647efed1c125424d37719eba62f38097b5013459b9d2e2c10a9d

See more details on using hashes here.

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

Hashes for libmg-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 14b421cc3d371fff3d3770c1a2f9fc4f2bf5eb7a7aecd0b59fe31868e9aa065a
MD5 a555d982f90372453486b7395a296200
BLAKE2b-256 0d33bf75377eecd89f676cdf21de75cbf182b00ea07013675afc291a4802f0e8

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