Skip to main content

A package for reasoning based on tensor networks

Project description

tnreason: Tensor Networks for efficient and explainable Reasoning

tnreason is the implementation of the tensor network approach to efficient and explainable AI, documented in the report.

Installation

The latest version of tnreason can be installed from the Python Package Index (PyPI) using pip:

pip install tnreason
Library Icon

Application Demonstrations

  • Hybrid Logic and Probabilistic Reasoning: The tensor network formalism generalizes logical and probabilistic reasoning. It therefore enables the combination of hard logical constraints in probabilistic models, which is a form of hybrid reasoning. For a demonstration on hard and soft accounting rules see the Accounting Example.

  • Statistical models of Knowledge Graphs: Tensor networks are furthermore useful in storing Knowledge Graphs, and more general of worlds in first-order logic. Based on the sample extraction formalism described in Chapter 11 of the report hybrid logic networks can be trained on data extracted from a knowledge base. For a demonstration of this method on the DPpedia Knowlege Graph see the DBpedia Example.

  • Solution of Constraint Satisfaction Problems (CSP): Local constraints can be captured by boolean tensors and CSPs consider contractions of these boolean tensors. Efficient message passing algorithms can be exploited in the solution of these problems. A particular well-known example of a CSP is the game of Sudoku, see the Sudoku Example.

Architecture

Library Icon

For references to the implemented concepts see Appendix A in the report.

References

Tutorials can be found here in the colab demonstrations.

A mathematical report can be found at the documentation repository.

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

tnreason-2.0.0.tar.gz (63.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tnreason-2.0.0-py3-none-any.whl (81.9 kB view details)

Uploaded Python 3

File details

Details for the file tnreason-2.0.0.tar.gz.

File metadata

  • Download URL: tnreason-2.0.0.tar.gz
  • Upload date:
  • Size: 63.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for tnreason-2.0.0.tar.gz
Algorithm Hash digest
SHA256 04543720a20770ca8fd2aa8d672701b65a22bdb50de963d9db7db9b3fbed870e
MD5 431086c8f595b6897250007ce4edae41
BLAKE2b-256 3708a95c38ce08b5614a4ede1069cb7cc02ce3f2b5f2b0bb6edf690e528861d8

See more details on using hashes here.

File details

Details for the file tnreason-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: tnreason-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 81.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for tnreason-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37372cafd60b9884be66268c8f11bbc4f8bf756a9ec94f79f27bb10b812d2c6d
MD5 58bb3a3a0768da2002e33b27c9fbe98b
BLAKE2b-256 828991f87daf121774052c2725f2aa4ed49c7c2da4b25dd41657d4df5e9e9ac5

See more details on using hashes here.

Supported by

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