Code Monkey home page Code Monkey logo

peterovermann / triadicmemory Goto Github PK

View Code? Open in Web Editor NEW
24.0 4.0 14.0 13.31 MB

Cognitive Computing with Associative Memory

License: MIT License

C 3.35% Mathematica 94.18% Python 0.75% Julia 0.20% Scheme 0.73% Odin 0.33% JavaScript 0.42% Makefile 0.04%
neural-networks artificial-intelligence associative-memory cognitive-science sparse-distributed-memory hyperdimensional-computing vector-symbolic-architectures content-addressable-storage machine-learning self-supervised-learning

triadicmemory's Issues

TemporalMemory3 understanding problem

Hi @PeterOvermann
I am reading your document and checking the Mathematica source code of TemporalMemory3, and according to my best knowledge about Mathematica (sorry if I am not right because I am mot familar with Mathematica and have learned it's syntax since yesterday) I found they are incompatible together.
I understand in your document, M0 has the x-position for i and z-position for j, and its y-position is bigram connecting to the x-pos of M1.
But in your code, you read bigfram as M0[i=inp, j,_] and use M0[i, _, bigram]. It seems to be that bigram is the z-pos.

I ported your Mathematica-TemporalMemory3 into C, but it does not work by simple test.
Could you please explain me that?
Thanks

bug

Hi
I am testing the algorithm TriadicMemory in C as follows
int N = 1000, P=10;
TriadicMemory *T = triadicmemory_new(N, P);

SDR *x = sdr_new(N);
SDR *y = sdr_new(N);
SDR *z = sdr_new(N);

int ax[3] = {1, 2, 3};
x->a = ax;
x->p = 3;	// length of a

int ay[3] = {4, 5 ,6};
y->a = ay;
y->p = 3;	// length of a

int az[3] = {7, 8, 9};
z->a = az;
z->p = 3;	// length of a

triadicmemory_write  (T, x, y, z);

SDR *xx = sdr_new(N);
xx->p == -1; // read x
sdr_print( triadicmemory_read_x (T, xx, y, z));

and in the consol terminal I get results for x
2 3 4
I expected the results like [1 2 3]
Is it a bug here?
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.