Skip to content

mansourkheffache/hdc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyperdimensional Computing (HDC) Framework

HOWTO:

from hdc import Space

# create a new hyper-space with default values (1000 dimensions, binary spatter codes representation)
s = Space()

# add a few hyper-vectors into the space
s.add()               # with randomly generated name
s.add('SoHyper')      # named hyper-vector

u = s.add()           # add a new hyper-vector and store it in a variable
v = s.add('v')

# retrieve hyper-vector
x = s['SoHyper']

# HDC operations
# *   binding
# +   bundling
A = x * u + v

# distance calculation
A.dist(v)

# clean-up memory, i.e. similarity check
B = A * u
s.find(B)

About

Hyperdimensional Computing Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages