Comments (17)
Why not transpile it to es5 with babel as a prepublish step? That seems to be the normal route for modules written in es6+.
from brain.js.
If we were to do it, I'd first create a new branch, then I'd like to ensure we use something like babel to compile it for compatibility. I'd also like to make part of the build process create a browser specific file, so that rather than doing it manually, it is built in. All of which wouldn't be too complicated.
from brain.js.
Seems legit. Maybe having an own branch for es6 is a good thing? So tagging different branches is made easier an makes the codebase compatible for older interpreter and users can choose a compatible version as they need.
from brain.js.
Once all that clears, then we could merge it into master, and continue on our merry way.
from brain.js.
It is here, huzzah!
from brain.js.
There's a tool caled lebab
by @mohebifar which would be probably useful to convert it automagically and then edit the things that still have to be edited manually (if any). 😁
from brain.js.
very cool!
from brain.js.
What would be our strategy for es5/legacy compatibility?
from brain.js.
I like it!
from brain.js.
@IonicaBizau I mostly manually translated it already.
from brain.js.
Ready and waiting here: #28
from brain.js.
As soon as this is merged, auto builds are next, then a pr for the recurrent neural network stuff. Just fyi.
from brain.js.
Merged!
from brain.js.
For publishing I use babel-it
which babelifies the files in place when npm publish
ing.
from brain.js.
Would you be up for taking a look at master, and seeing if you can apply your knowledge there?
from brain.js.
@robertleeplummerjr Well, pretty much npm i -g babel-it
and instead of doing npm publish
you do babel-it
. 😁
from brain.js.
rnn, lstm, and gru working 100%, with some simple unit tests and travic-ci build: #29
from brain.js.
Related Issues (20)
- Deno Support?
- The Recurrent class will not function without a GPU HOT 1
- Unable to install Brain.js on PopOS HOT 22
- GPU powered AI demo is a 404 HOT 2
- "Forecasting" demo is a 404 HOT 2
- tree process
- Freezing when training NeuralNetworkGPU (async).
- Train with NeuralNetworkGPU more slower than CPU HOT 3
- Always the same output data on NeuralNetwork HOT 1
- Unable to install on MacOS Ventura HOT 1
- Did you try the built in distance calc?
- need to update URL for example
- MacOS node 20.10.0 build failing HOT 2
- Fatal error while installing via NPM package HOT 1
- Most example links are broken HOT 4
- Summary()
- Type 'InputType' is not assignable to type 'Partial<INumberHash>'... and many others
- stream-example.js page not found error HOT 1
- Npm i brain.js || node-gyp error
- Brain.js to detect bad words HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brain.js.