Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stephantul/plate
holographic reduced representations
https://github.com/stephantul/plate
Last synced: about 6 hours ago
JSON representation
holographic reduced representations
- Host: GitHub
- URL: https://github.com/stephantul/plate
- Owner: stephantul
- License: mit
- Created: 2019-06-20T11:25:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-03T19:37:29.000Z (9 months ago)
- Last Synced: 2024-05-03T20:58:17.723Z (9 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# plate
This is a simple implementation of holographic reduced representation by Plate (1993). The idea behind it is that you can recursively encode vector representations through circular convolution. A nice property of circular convolution is that it is invertible by involution, as long as you know one of the constituents of the representation.
# Example
```python3
import numpy as np
from plate import circular_convolution, decodedog, bite = np.random.normal(size=(2, 100))
vec = circular_convolution(dog, bite)
b = decode(bite, vec)[0]# b should be more similar to dog than to other vectors.
```