Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stephantul/plate

holographic reduced representations
https://github.com/stephantul/plate

Last synced: about 6 hours ago
JSON representation

holographic reduced representations

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, decode

dog, 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.
```