Structured knowledge representation in neural networks via tensor products
Project description
💰 Support This Research - Please Donate!
🙏 If this library helps your research or project, please consider donating to support continued development:
💳 DONATE VIA PAYPAL - CLICK HERE
Tensor Product Binding
🔗 Compositional neural representations
Smolensky, P. (1990) - "Tensor product variable binding"
📦 Installation
pip install tensor-product-binding
🚀 Quick Start
import tensor_product_binding
import numpy as np
# Create tensor product binding system
binding = tensor_product_binding.TensorProductBinding(
role_dim=50,
filler_dim=50
)
# Create symbolic structures
sentence = binding.encode_structure({
'subject': 'John',
'verb': 'loves',
'object': 'Mary'
})
# Query the structure
subject = binding.query(sentence, 'subject')
print(f"✅ Subject: {binding.decode_filler(subject)}")
# Create neural binding network
neural_net = tensor_product_binding.create_neural_binding_network(
role_dim=50,
filler_dim=50,
backend='numpy'
)
🎓 About the Implementation
Implemented by Benedict Chen - bringing foundational AI research to modern Python.
📧 Contact: benedict@benedictchen.com
📖 Citation
If you use this implementation in your research, please cite the original paper:
Smolensky, P. (1990) - "Tensor product variable binding"
📜 License
Custom Non-Commercial License with Donation Requirements - See LICENSE file for details.
💰 Support This Work - Donation Appreciated!
This implementation represents hundreds of hours of research and development. If you find it valuable, please consider donating:
💳 DONATE VIA PAYPAL - CLICK HERE
Your support helps maintain and expand these research implementations! 🙏
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tensor_product_binding-1.1.0.tar.gz.
File metadata
- Download URL: tensor_product_binding-1.1.0.tar.gz
- Upload date:
- Size: 43.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4202eed12f236bd7225e661985e2a343bed3082cc4abd6c2fdac8627693d4303
|
|
| MD5 |
05c2f6b75c9f786805cf1d0d02d2f887
|
|
| BLAKE2b-256 |
ba1430d9c3e42e83628f477313722bdf2b9818926e708a87ebdf2ec3121f00af
|
File details
Details for the file tensor_product_binding-1.1.0-py3-none-any.whl.
File metadata
- Download URL: tensor_product_binding-1.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cce78c38d4ff3c61f9fa764800b98a1340396071ab42e58699abf1885cb4b983
|
|
| MD5 |
d562511fc6c747208abb4ebf3795bccc
|
|
| BLAKE2b-256 |
5651f3ace5705737df6922f40f76f4613ed5b291d4b1499c5ac1b690f2859864
|