peterovermann / triadicmemory Goto Github PK
View Code? Open in Web Editor NEWCognitive Computing with Associative Memory
License: MIT License
Cognitive Computing with Associative Memory
License: MIT License
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.