Skip to main content

Graph Neural Networks with Keras and Tensorflow.

Project description



Welcome to Spektral

Spektral is a Python library for graph deep learning, based on Keras and TensorFlow. The main goal of this project is to provide a simple but flexible framework for creating graph neural networks (GNNs).

You can use Spektral for classifying the nodes of a network, predicting molecular properties, generating new graphs with GANs, clustering nodes, predicting links, and any other task where data is described by graphs.

Spektral implements some of the most popular layers for graph deep learning, including:

You can also find pooling layers, including:

Spektral also includes lots of utilities for your graph deep learning projects.

See how to get started with Spektral and have a look at the examples for some project templates.

The source code of the project is available on Github.
Read the documentation here.

Installation

Spektral is compatible with Python 3.5+, and is tested on Ubuntu 16.04+ and MacOS. Other Linux distros should work as well, but Windows is not supported for now.

To install the required dependencies on Ubuntu run:

$ sudo apt install graphviz libgraphviz-dev libcgraph6

Some features of Spektral also require the following optional dependencies:

  • RDKit, a library for cheminformatics and molecule manipulation (available through Anaconda);
  • dyfunconn, a library to build functional connectivity networks (available through PyPi);

The simplest way to install Spektral is from PyPi:

$ pip install spektral

To install Spektral from source, run this in a terminal:

$ git clone https://github.com/danielegrattarola/spektral.git
$ cd spektral
$ python setup.py install  # Or 'pip install .'

To install Spektral on Google Colab:

! apt install graphviz libgraphviz-dev libcgraph6
! pip install spektral

Contributing

Spektral is an open source project available on Github, and contributions of all types are welcome. Feel free to open a pull request if you have something interesting that you want to add to the framework.

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

spektral-0.1.2.tar.gz (49.4 kB view details)

Uploaded Source

Built Distribution

spektral-0.1.2-py3-none-any.whl (62.5 kB view details)

Uploaded Python 3

File details

Details for the file spektral-0.1.2.tar.gz.

File metadata

  • Download URL: spektral-0.1.2.tar.gz
  • Upload date:
  • Size: 49.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.2

File hashes

Hashes for spektral-0.1.2.tar.gz
Algorithm Hash digest
SHA256 94335e2f057526047b9936ba9ceab8382c8cf73893db0b8778d8d3141928a65a
MD5 b179779fd1a5767a9c4c708ec28c012f
BLAKE2b-256 d55d9cd9bb9a9c76a5a5bc9d62817d0a7914eca6448c549d4c0f16fc88aaab01

See more details on using hashes here.

Provenance

File details

Details for the file spektral-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: spektral-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 62.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.2

File hashes

Hashes for spektral-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 871eaf8f1b4ca4cdb4d01307f9a058e02afbc970c4724ba02dc39d4edc67c868
MD5 bd5b2435698940260209e5cdc3d2a78f
BLAKE2b-256 c88049a5a57886b7d21234a570e87720f51af9e67ada9dc863d4d22efae7fe31

See more details on using hashes here.

Provenance

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