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

Uploaded Source

Built Distribution

libmg-1.0.0-py3-none-any.whl (51.6 kB view details)

Uploaded Python 3

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

Hashes for libmg-1.0.0.tar.gz
Algorithm Hash digest
SHA256 65bd89180d65999b0f85c9637a628da6910bbfac2028d081f1e5878e32c2b644
MD5 136abdd010f3c2bf5e74f5189eb2a1ea
BLAKE2b-256 f9e65d28f5a45a77ef8ce176941de56535eba54de09307c14c238402cdd4e651

See more details on using hashes here.

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

Hashes for libmg-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ffd96eb56d6ccd8824e7061efa83598377b0445f5a1a125e8f39cd6664913bb
MD5 4a6d39d83bdbd425c8a1496e796f4730
BLAKE2b-256 296cf675f294d20ed7d795be8c5777161c221a8516f53a72004d289a78407692

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