The documentation and tutorials can help you get started. In its simplest form, though, it is pretty easy to do simple things. Just to get you started, we put together something very simple: a network that learns how to estimate what ten times some number equals. It isn’t the most amazing demo, but if you learn by reading code, it is somewhere to start.
You can probably guess the xs tensor is the inputs and the ys tensor is the expected outputs.
What this means is that when fitting is complete (model.fit returns a promise) the code will run the predict method to guess the result with input n. If you want to learn more about promises, Google has a good introduction along with a related discussion of the new await keyword.
The rest is pretty stock HTML forms. You can get the whole file from GitHub. Just put it somewhere and point your browser to the file. You’ll notice the results aren’t exact since it is an estimate, but the more training you do, the better they’ll get.
Isn’t there a less Google afflicted project out there? We should not use their crap, it is poison.
There was a machine learning library written in only 200 lines of code posted a while back. Should be pretty easy to see everything going on there, but i doubt it uses cuda or other snazzy hardware tricks. Still highly impressive imho.
There are many neural network libraries out there. We gave an overview of a bunch of them in this article about a year ago https://hackaday.com/2017/04/24/neural-networks-youve-got-it-so-easy/. A few new ones have come along but not much has changed. Caffe is now caffe2 and PyTorch is no longer beta and is one of the most popular. There’s also Deeplearning4j for Java and Scala.
Serious question for the uninitiated (i.e. me) why is it poison?
Google’s only mission is to turn us, users, into commodity products for marketeers by comprimizing out security, privacy and individuality. Everything attached to google is by definition a trap. Node.js, search, youtube and especially their dev programs which may be the most disgusting of them all. Using this “AI” platform means that we, the cattle, are actually proactively helping Google fine tune this tech to use against us. We should know better.
Only concern one should have is do GPU using libraries have security in mind?
Good question. This is pretty neat, but be careful giving a browser access to so many features.
asynchronous operations, but it’s not parallel processing.
Someone with a time machine and a poor sense of humor is trolling us all….
Microsoft then created JScript. This was in the days of the “browser wars” and cross-browser compatibility was an absolute nightmare.
Using tensorflow in the browser is something we have not thought about before!
Is “everything is an object” actually an advantage compared to other programming languages?
As a form of complexity-management, it has it’s uses.
Looks pretty much like an object to me.
could this be used to mine monero on coinhive?
Geri has added a new log for Dawn - the SUBLEQ operating system by Geri.
Geri has added details to Dawn - the SUBLEQ operating system by Geri.