kanren
An extensible, lightweight relational/logic programming DSL written in pure Python (by pythological)
PyNeuraLogic
PyNeuraLogic lets you use Python to create Differentiable Logic Programs (by LukasZahradnik)
kanren | PyNeuraLogic | |
---|---|---|
3 | 7 | |
169 | 277 | |
0.0% | - | |
0.0 | 8.1 | |
over 1 year ago | 12 days ago | |
Python | Python | |
GNU General Public License v3.0 or later | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
kanren
Posts with mentions or reviews of kanren.
We have used some of these posts to build our list of alternatives
and similar projects.
- Kanren: An extensible, lightweight relational/logic programming DSL in Python
-
When do you use generators?
Kanren for Pyhon implements a logic programming paradigm using generators giving substitutions for logical variables. It allows to deal with infinite solutions that can be conjoined (interleaved) with others seamlessly
-
Five-minute Multimethods in Python by Guido van Rossum - March 30, 2005
found about this decorator while playing with https://github.com/pythological/kanren
PyNeuraLogic
Posts with mentions or reviews of PyNeuraLogic.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-09.
-
[P] PyNeuraLogic - a framework for writing differentiable logic programs
Hi, sure. With this framework, you can write and train deep learning models similarly to PyTorch or TensorFlow. Although the main aim of PyNeuraLogic is on deep relational learning and it uses custom declarative language (implemented in Python). Best fitting use cases are everything where you can utilize relations. One of those use-cases that we are promoting right now is on Graph Neural Networks (GNNs), where you have relations between nodes (such as social networks, molecules). You can then utilize those relations and do regular tasks on graphs, such as link prediction, graph classification, node classification, etc. GNNs quite nicely fit the framework and its language and can be expressed just in one line (as shown in the README). The concrete use-case of PyNeuraLogic on GNNs could then be a molecule classification (example). Other use-cases could be for NLP (we have todo to write an example for it) or knowledge base completion. You could also use it like a regular framework without utilizing relations, but in that case, it might be more efficient to go with PyTorch or TensorFlow.
- Show HN: Evaluate Deep Learning models directly in a database with PyNeuraLogic
-
Why Hypergraphs? (2013)
For an original proposal that do logic inference on Hypergraphs I am using NeuraLogic, through a Python frontend (https://github.com/LukasZahradnik/PyNeuraLogic)
I wonder if this is something the author would have enjoyed…
-
This Week in Python
PyNeuraLogic – PyNeuraLogic lets you use Python to create Differentiable Logic Programs
- GitHub - LukasZahradnik/PyNeuraLogic: PyNeuraLogic lets you use Python to create Differentiable Logic Programs
- Show HN: PyNeuraLogic: Python Differentiable Logic Programs
What are some alternatives?
When comparing kanren and PyNeuraLogic you can also consider the following projects:
minizinc-python - Access to all MiniZinc functionality directly from Python
chemicalx - A PyTorch and TorchDrug based deep learning library for drug pair scoring. (KDD 2022)