cazala / synaptic

architecture-free neural network library for node.js and the browser
http://caza.la/synaptic
Other
6.91k stars 666 forks source link

Es6ify synaptic #254

Closed villesau closed 6 years ago

villesau commented 6 years ago

Recently came across the library and started to take a look how it is implemented. And what would be better way to explore the library than refactor/modernize it a bit? This pr doesn't touch the logic, only takes some es6 features into use, like es6 classes and export/import.

Notable changes: Now the library doesn't assign it self to window anymore.

Also test setup might still need some adjusting. Please go trough the pr with care. (and as a pro tip, use ?w=1 query param to get rid of white space changes)

Not sure if i was supposed to submit built version too. It's the last commit so it can be removed easily.

cazala commented 6 years ago

Thanks!! Just released this as v1.1.0