News for hackers. Stuff that matters.
Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by megalodon on Tuesday July 28, 2015 @07:26AM (#9960692)
If you haven't already, check out Synaptic [1] by Juan Cazala. I use it in many of my ML projects and it contains a lot of useful examples and documentation. I recommend you take a look at the source as well, which is easy enough to understand.

[1] https://github.com/cazala/synaptic

Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by mattlutze on Tuesday July 28, 2015 @07:22AM (#9960683)
Those of you HNers working with or studying artificial neural networks (or armchair enthusiasts), is there any research you've seen recently that had you particularly excited?
Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by nl on Tuesday July 28, 2015 @08:08AM (#9960852)
Jason Weston (Facebook) etc's work on Memory Nets[1]

Anything to do with transfer learning (the 2013 Zero-Shot Learning Through Cross-Modal Transfer[2] paper is a good place to start)

The increasing amount of demos around using NNs to generate "things" that look kinda-almost "intelligent". I can't point at a paper, but Andrej Karpathy demo of generating Shakespere-like writing, "Wikipedia" pages and "C" code in The Unreasonable Effectiveness of Recurrent Neural Networks[3] is the kind of thing I'm talking about.

The beginnings of work around goal-seeking. The (now Google) DeepMind Atari demo[4] and Marl/O[5]

Finally, the work being done on making this stuff usable by programmers (Torch etc).

[1] http://arxiv.org/abs/1410.3916

[2] http://arxiv.org/pdf/1301.3666.pdf

[3] http://karpathy.github.io/2015/05/21/rnn-effectiveness/

[4] https://www.cs.toronto.edu/~vmnih/docs/dqn.pdf

[5] https://www.youtube.com/watch?v=qv6UVOQ0F44

Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by bottled_poe on Tuesday July 28, 2015 @07:33AM (#9960721)
I can't see how the 'fast' claim is quantified.
Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by the8472 on Tuesday July 28, 2015 @09:04AM (#9961130)
Browsers don't support WebCL yet and their asm.js is single-threaded. And their auto-vectorization abilities also might be questionable. I don't see how it could possibly compete with things NNs running on a GPU.

"Fast" might simply refer to efficient algorithms implemented in C?

Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by thomasfoster96 on Tuesday July 28, 2015 @09:30AM (#9961287)
Browsers will probably never support WebCL.
Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by ericjang on Tuesday July 28, 2015 @10:03AM (#9961509)
Why do you think so?
Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by thomasfoster96 on Wednesday July 29, 2015 @10:13AM (#9968724)
The WebCL spec has been finished for well over a year now, and was fairly stable for a while before that, yet no browsers have implemented it. Mozilla has publicly stated they aren't interested and are going with WebGL 2.0 instead.
Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by onion2k on Tuesday July 28, 2015 @11:23AM (#9962186)
The 'fast' in the title isn't really a claim about the JS version; it comes from the library that was emscriptened - http://leenissen.dk/fann/wp/ - it's 'fast' in the sense that it uses efficient algorithms rather than it's actually fast.
Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by toxicFork on Tuesday July 28, 2015 @08:56AM (#9961086)
It's the .js port of FANN (Fast Artificial Neural Network) : http://leenissen.dk/fann/wp/

> Fast (up to 150 times faster execution than other libraries)

Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by the8472 on Tuesday July 28, 2015 @09:04AM (#9961133)
> up to
Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by toxicFork on Tuesday July 28, 2015 @09:13AM (#9961180)
Sure, but the case for this prject isn't "Neural network implementation in javascript that's 'fast'".

It's "FANN".js, where FANN expands to "Fast Artificial Neural Network", and the c implementation of FANN was probably the fastest when it was created.

Conclusion: FANN.js is "the js port of FANN".

Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by the8472 on Tuesday July 28, 2015 @09:29AM (#9961280)
The F stands for Fast, and I don't even see any proof for their claim to fastness in the C version.
Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by toxicFork on Tuesday July 28, 2015 @11:45AM (#9962359)
http://prdownloads.sourceforge.net/fann/fann_doc_complete_1.... This one seems to have some information under "performance analysis". I'm not assuming it's correct, but go ahead and research further if you like, rather than quoting parts of my quote.
Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by the8472 on Tuesday July 28, 2015 @12:45PM (#9962839)

    Besides the fann library, I will benchmark Jet's Neural Library [Heller, 2002] (hereafter
    known as jneural) and Lightweight Neural Network [van Rossum, 2003] (hereafter
    known as lwnn). I have made sure that all three libraries have been compiled
    with the same compiler and the same compile-options.
    I have downloaded several other ANN libraries, but most of them had some
    problem making them difficult to use. Either they where not libraries, but programs
    [Anguita, 1993], [Zell, 2003], they could not compile [Software, 2002], or the
    documentation was so inadequate that is was not possible to implement the features
    needed in the benchmark [Darrington, 2003].
    Even though I will only benchmark two libraries besides the fann library, I still
    think that they give a good coverage of the different libraries which are available. I
    will now briefly discuss the pros and cons of these two libraries.

Yeah, so the author picked two simple, "easy to use" NN libraries to benchmark against, had trouble with others and just dropped them and then claimed it's fast because it performed "up to" 140 times faster than one of those two libraries. Seems kinda like a "get a paper out" work that is technically correct but doesn't measure up to real world standards. Real implementations would use vectorized math, math libraries with hand-optimized assembly or run straight on the GPU.
Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by SchizoDuckie on Tuesday July 28, 2015 @10:44AM (#9961822)
Allright, now somebody please hook this into a game of 2048 and let the machines show us how it' s done.
Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by megalodon on Tuesday July 28, 2015 @11:34AM (#9962272)
Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by SchizoDuckie on Tuesday July 28, 2015 @02:17PM (#9963482)
That's just an algorithm, a far stretch from a neural net playing 2048.

It has been done though: https://www.youtube.com/results?search_query=neural+net+2048

Still, it would be awesome to see a JS neural net playing a JS game

Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by z3t4 on Tuesday July 28, 2015 @12:20PM (#9962658)
Some more tutorials would be nice. I tried to learn it addition, but that failed miserable.
Re:FANN.js – Fast Artificial Neural Network Compiled with Em... by olivierkaisin on Tuesday July 28, 2015 @08:26AM (#9960926)
This should be published on npm