========= Pymetheus
.. image:: https://img.shields.io/pypi/v/pymetheus.svg :target: https://pypi.python.org/pypi/pymetheus
.. image:: https://img.shields.io/travis/vinid/pymetheus.svg :target: https://travis-ci.org/vinid/pymetheus
.. image:: https://readthedocs.org/projects/pymetheus/badge/?version=latest :target: https://pymetheus.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status
PyMetheus: Deep Nets for Logical Reasoning
- Free software: GNU General Public License v3
- Documentation: https://pymetheus.readthedocs.io.
Features
- Provides an out of the box tool to learn (fuzz) first order logic with the use of an underlying vector space
Features
- Create a Logic Deep Network
.. code-block:: python
import pymetheus
import itertools
from pymetheus.pymetheus import LogicNet
ll = LogicNet()
..
- Introduce Some Constants
.. code-block:: python
ll.constant("Rome")
ll.constant("Milan")
ll.constant("Italy")
..
- Introduce Some Predicates and Knowledge
.. code-block:: python
ll.predicate("capital")
ll.predicate("country")
ll.knowledge("country(Milan,Italy)")
ll.knowledge("capital(Rome,Italy)")
ll.zeroing() # Initialize KB with all knowledge as false
..
-
Add quantified rule with data .. code-block:: python
rule = "forall ?a,?b: capital(?a,?b) -> country(?a,?b)" ll.universal_rule(rule) var = ["Italy", "Rome", "Milan"] ll.variable("?a", var) ll.variable("?b", var) ..
-
Learn and Reason
.. code-block:: python
ll.learn(epochs=1000, batch_size=25)
ll.reason("capital(Rome,Italy)", True)
..
Credits
This package was created with Cookiecutter_ and the audreyr/cookiecutter-pypackage_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _audreyr/cookiecutter-pypackage: https://github.com/audreyr/cookiecutter-pypackage
======= History
0.1.0 (2019-08-22)
- First release on PyPI.
Metadata
Release files for pymetheus 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pymetheus-0.3.1.tar.gz | 17.1 kB | Without provenance | Details for pymetheus-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pymetheus-0.3.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pymetheus-0.3.1-py2.py3-none-any.whl |
Total release size: 31.0 kB
Release files / pymetheus-0.3.1.tar.gz
| Download URL | pymetheus-0.3.1.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3e2175ad594f7190dd110e0e73f8c5901a474b3968a92a8d9f4809af64afebe
|
|
BLAKE2b-256 checksum How to use checksums |
e907dd009f0a0347f4c4d9fb87776c0df5ad254b121a5030146eaa3bb22d6ee5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5
|
Release files / pymetheus-0.3.1-py2.py3-none-any.whl
| Download URL | pymetheus-0.3.1-py2.py3-none-any.whl |
|---|---|
| Size | 13.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
acc88b8b93eb7f2d491170212743f739b02cda0533ad69b0cdc19b66fda34168
|
|
BLAKE2b-256 checksum How to use checksums |
ab54832a5f8b40d2479e651074c0a3d9a0d3cd119e433fd19776e40991b9ca93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5
|
Security for pymetheus 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.