neural-redis
                                
                                 neural-redis copied to clipboard
                                
                                    neural-redis copied to clipboard
                            
                            
                            
                        Refactoring for use in https://github.com/mingodad/squilu
This is my latest refactoring of neural-redis, I did it to learn/understand it and to use with https://github.com/mingodad/squilu
The code for AVX and AVX512 still use unaligned memory because on some machine it doesn't work with aligned memory.
The random initialisation used in tests/nn-benchmark.c wasn't working properly so I changed the it to have a better entropy.
Added a function "Ann2Js" to generate a javascript function emulating the trained network, also fixed/changed the generated TCL in "An2Tcl" because it was broken.
I'm still do not like/understand the way weight/gradient/pgradient/delta are indexed but I could not find a better working way till now.
This is here just in case it can be util to other people too.
Cheers !