sdr
v0.1.1
Published
functions to work with Sparse Distributed Representations
Downloads
6
Maintainers
Readme
sdr
Functions for working with Sparse Distributed Representation
one of biggest problems in AI --no, the only problem in AI-- is the problem of representation So said a retiring AI researcher
If you don't know what SDRs are, you should go learn about them. numenta.org Or watch these videos for an easy to follow introduction.
Usage
Your SDR arrays are always assumed to be in order from least to greatest. The functions use this assumption to optimize performance.
var sdr = require('sdr');
sdr.union(
[0, 10, 15, 30],
[0, 5, 10, 20]
);
//-> [0, 5, 10, 15, 20, 30]
sdr.intersect(
[1, 2],
[2, 3]
);
//-> [2]
sdr.sparsity([0, 10, 20], 100);
//-> 0.03
sdr.capacity(2048, 40);
//-> 2.3717785116453587e+84
License
MIT