Skip to content
/ sdr Public

javascirpt functions to work with Sparse Distributed Representations

License

Notifications You must be signed in to change notification settings

smallhelm/sdr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sdr

build status

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

About

javascirpt functions to work with Sparse Distributed Representations

Resources

License

Stars

Watchers

Forks

Packages

No packages published