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

Uploaded Source

Built Distribution

libmg-1.0.5-py3-none-any.whl (889.3 kB view details)

Uploaded Python 3

File details

Details for the file libmg-1.0.5.tar.gz.

File metadata

  • Download URL: libmg-1.0.5.tar.gz
  • Upload date:
  • Size: 873.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for libmg-1.0.5.tar.gz
Algorithm Hash digest
SHA256 23214349e298659012af65ded2c5369fede8717f1d3d2e3198d8650abcad6b73
MD5 fb14238dfa74260b81e0d05a20e1043d
BLAKE2b-256 fefee1bf93cb8119adb00b4e40e0e9532fe78c30e5568ff5a05482b0c4402b0b

See more details on using hashes here.

File details

Details for the file libmg-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: libmg-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 889.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for libmg-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0734f6dcc61caee2b4d661dab125685c6b3de38a60be2a9e5ccb5739037ca1dc
MD5 8a4b4b4448de56e5270c9de659606896
BLAKE2b-256 eb65aadd9da67d9bdaeaed7d413f2834bb0c8d84f5ab6980428ebc957cd8eeca

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